54 lines
1.5 KiB
Markdown
54 lines
1.5 KiB
Markdown
# UIMorphComponent — giriş
|
|
|
|
[← UIMorphComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 2/2 · [önceki](_giris.md)
|
|
|
|
label.xy(0, 80).wh(100, 20).labelAnchor(0.5, 0.5);
|
|
|
|
var graphics = layout.graphics();
|
|
var h = 54;
|
|
var y = 30;
|
|
|
|
// Draw the background bubble
|
|
graphics.xy(100, y).wh(200, 100);
|
|
graphics.rect(4, 5, 192, h - 12, 0xff000000);
|
|
graphics.rect(5, 4, 190, h - 10, 0xff000000);
|
|
graphics.rect(5, 5, 190, h - 12, 0xffffffff);
|
|
graphics.rect(4, 11, 1, 4, 0xffffffff);
|
|
graphics.rect(3, 10, 1, 5, 0xff000000);
|
|
graphics.rect(3, 11, 1, 3, 0xffffffff);
|
|
graphics.rect(2, 10, 1, 4, 0xff000000);
|
|
graphics.rect(2, 11, 1, 2, 0xffffffff);
|
|
graphics.rect(1, 10, 1, 3, 0xff000000);
|
|
graphics.rect(1, 11, 1, 1, 0xffffffff);
|
|
graphics.rect(0, 10, 1, 2, 0xff000000);
|
|
graphics.rect(-1, 10, 1, 1, 0xff000000);
|
|
|
|
var text = layout.text("Well, hello there! I expected you...\n\nMy name is Steve, and yours?");
|
|
|
|
text.color(0x000000, false).xy(110, y + 10).wh(180, 80);
|
|
|
|
c.getSubject().openUI(ui);
|
|
}
|
|
|
|
|
|
Field Summary
|
|
Fields
|
|
|
|
Modifier and Type Field and Description
|
|
float distance
|
|
boolean editing
|
|
float fov
|
|
NBTTagCompound morph
|
|
Vector3f pos
|
|
Vector2f rot
|
|
|
|
Fields inherited from class mchorse.mappet.api.ui.components.UIComponent
|
|
changedProperties, context, DELAY, enabled, h, id, keybinds, marginBottom, marginLeft, marginRight, marginTop, tooltip, tooltipDirection, updateDelay, visible, w, x, y
|
|
|
|
Constructor Summary
|
|
Constructors
|
|
|
|
Constructor and Description
|