Blockland Forums > Modification Help
[Tutorial] Creating A GUI [Updated 4/1/2012]
<< < (6/12) > >>
Lugnut:

--- Quote from: SlayerZ99 on March 24, 2012, 06:31:03 PM ---Oh, that could be why. Thanks

Now I just need to know how to open my GUI

--- End quote ---
canvas.pushDialog(guiName);
canvas.pushdialog(escapeMenu);
for example
SlayerZ99:
My GUI mapping controls are still not showing up under the control tab.  files from my "Client_Test" zip folder.
My client.cs

exec("./Test.gui");

    $remapDivision[$remapCount] = "Category";
    $remapName[$remapCount] = "Action";
    $remapCmd[$remapCount] = "Open_Test";
    $remapCount++;

My Test.gui

//--- OBJECT WRITE BEGIN ---
new GuiControl(Test) {
   profile = "GuiDefaultProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 2";
   visible = "1";

   new GuiWindowCtrl(Test) {
      profile = "GuiWindowProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "0 0";
      extent = "334 408";
      minExtent = "8 2";
      visible = "1";
      accelerator = "escape";
      text = "Test";
      maxLength = "255";
      resizeWidth = "1";
      resizeHeight = "1";
      canMove = "1";
      canClose = "1";
      canMinimize = "1";
      canMaximize = "1";
      minSize = "50 50";
      closeCommand = "canvas.popDialog(TestGui);";

      new GuiBitmapButtonCtrl(Button) {
         profile = "BlockButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "82 61";
         extent = "140 30";
         minExtent = "8 2";
         visible = "1";
         command = "TestButtonPush();";
         text = "Button";
         groupNum = "-1";
         buttonType = "PushButton";
         bitmap = " base/client/ui/button2";
         lockAspectRatio = "0";
         alignLeft = "0";
         overflowImage = "0";
         mKeepCached = "0";
         mColor = "255 25 25 255";
      };
   };
};
//--- OBJECT WRITE END ---
function Open_Test(%Gui)
{
   %Gui = canvas.pushDialog(TestGui);
}
SlayerZ99:
Double bump.
I got it to work by barely following AGlassOfMilk's tutorial

Instead of Client_ I used Script_ and it worked!
Nexus:

--- Quote from: SlayerZ99 on March 24, 2012, 10:15:03 PM ---Double bump.
I got it to work by barely following AGlassOfMilk's tutorial

Instead of Client_ I used Script_ and it worked!

--- End quote ---

That shouldn't make a difference

Probably restarting blockland fixed it
SlayerZ99:

--- Quote from: Nexus on March 24, 2012, 10:20:44 PM ---That shouldn't make a difference

Probably restarting blockland fixed it

--- End quote ---
I dont know because Ive been doing all this afternoon with no luck until just now

Testing out another one based off of the Admin gui
Navigation
Message Index
Next page
Previous page

Go to full version