local ui = {} local _V = function(...) return SL:GetMetaValue(...) end local FUNCQUEUE = {} local TAGOBJ = {} function ui.init(parent, __data__, __update__) if __update__ then return ui.update(__data__) end -- Create c_bg_img local c_bg_img = GUI:Image_Create(parent, "c_bg_img", 0, 0, "res/custom/02/5.png") GUI:setAnchorPoint(c_bg_img, 0.50, 0.50) GUI:setTouchEnabled(c_bg_img, false) GUI:setTag(c_bg_img, -1) -- Create TextInput local TextInput = GUI:TextInput_Create(c_bg_img, "TextInput", 144, 284, 170, 25, 16) GUI:TextInput_setString(TextInput, "") GUI:TextInput_setPlaceHolder(TextInput, "请输入 cdk") GUI:TextInput_setFontColor(TextInput, "#ffffff") GUI:TextInput_setPlaceholderFontColor(TextInput, "#a6a6a6") GUI:TextInput_setInputMode(TextInput, 0) GUI:setAnchorPoint(TextInput, 0.00, 0.00) GUI:setTouchEnabled(TextInput, true) GUI:setTag(TextInput, 0) -- Create Button_1 local Button_1 = GUI:Button_Create(c_bg_img, "Button_1", 346, 275, "res/custom/02/10.png") GUI:Button_loadTexturePressed(Button_1, "res/custom/02/12.png") GUI:Button_setTitleText(Button_1, [[]]) GUI:Button_setTitleColor(Button_1, "#ffffff") GUI:Button_setTitleFontSize(Button_1, 16) GUI:Button_titleDisableOutLine(Button_1) GUI:setAnchorPoint(Button_1, 0.00, 0.00) GUI:setTouchEnabled(Button_1, true) GUI:setTag(Button_1, 0) ui.update(__data__) return c_bg_img end function ui.update(data) for _, func in pairs(FUNCQUEUE) do if func then func(data) end end end return ui