rightmenu.gui
来自「此为游戏源码 是很好 的学习工具阿」· GUI 代码 · 共 71 行
GUI
71 行
//===================================================================
//
// TGE DemoGui by Kenneth 'Gonzo' Harvey
//
//===================================================================
//--- OBJECT WRITE BEGIN ---
new GuiControl(DemoGui) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "800 600";
minExtent = "8 2";
visible = "1";
new GuiControl(MainCTRL) {
profile = "GuiDefaultProfile";
horizSizing = "center";
vertSizing = "center";
position = "0 0";
extent = "445 158";
minExtent = "8 2";
visible = "1";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "80 16";
minExtent = "8 2";
visible = "1";
command = "DemoGui.action(EXIT);";
accelerator = "return";
text = "Trad";
groupNum = "-1";
buttonType = "PushButton";
};
};
};
//--- OBJECT WRITE END ---
function DemoGui::action(%this, %action)
{
switch$(%action)
{
case "SHOW":
case "HIDE":
case "EXIT":
Canvas.popDialog(DemoGui);
}
}
function DemoGui::onWake(%this)
{
MainCTRL.position=$mousepos;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?