mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-27 15:36:16 +01:00
24 lines
644 B
Text
24 lines
644 B
Text
|
/// @description init
|
||
|
if(editWidget == noone) exit;
|
||
|
|
||
|
#region Draw
|
||
|
draw_sprite_stretched(THEME.textbox, 3, dialog_x, dialog_y, dialog_w, dialog_h);
|
||
|
draw_sprite_stretched(THEME.textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h);
|
||
|
|
||
|
editWidget.setFocusHover(sFOCUS, sHOVER);
|
||
|
|
||
|
var eX = dialog_x + ui(4);
|
||
|
var eY = dialog_y + ui(4);
|
||
|
var eW = dialog_w - ui(8);
|
||
|
|
||
|
var param = new widgetParam(eX, eY, eW, TEXTBOX_HEIGHT, keyframe.value, junction.display_data);
|
||
|
var _h = editWidget.drawParam(param);
|
||
|
|
||
|
dialog_h = _h + ui(8);
|
||
|
|
||
|
if(wid_h != dialog_h) {
|
||
|
dialog_y = min(dialog_y, WIN_H - dialog_h - ui(8));
|
||
|
wid_h = dialog_h;
|
||
|
}
|
||
|
|
||
|
#endregion
|