Author Topic: GUI Creator Tutorial request  (Read 7033 times)

Error: cannot change namespace parent linkage for TestGUI from GuiControl to GuiWindowCtrl.
You have the name "TestGUI" for the GUI itself and the window. Change the name of the window one to "TestWindow" or something similar.

new GuiControl(TestGUI)
new GuiWindowCtrl(TestGUI)

I know that, I figured that out a long time ago.

Can someone give me a description of the GUI controls? I'll post a list below
  • Gui Array control
  • Gui avi bitmap control
  • Gui Background control
  • Bitmap Border cntrl
  • GUI border button
  • Gui Bubble text cntrl
  • GUI button base cntrl
  • Gui canvas <<<< This caused my Blockland to crash, Why????
  • Gui chunked bitmap cntrl
  • Gui Control list pop up
  • Gui Edit cntrl
  • Gui fadein bitmap cntrl
  • Gui filter cntrl
  • Gui Frameset cntrl
  • Gui input cntrl
  • Gui Inspector
  • Gui menu bar
  • Gui message vector cntrl
  • Gui ML text cntrl
  • Gui ML text edit cntrl
  • Gui Object view
  • Gui pop up menu cntrl
  • Gui slider cntrl<<<< How do you use it in code?
  • Gui terr preview cntrl
  • Gui text cntrl
  • Gui text edit cntrl
  • Gui text edit slider cntrl<<<<< How do you use it in code?
  • Gui text list cntrl
  • Gui TS cntrl
I know that's a lot, but some of them might not work, so I'll test them and cross them out, if you could give me a brief description of them, please do so. I think a lot of people can benefit from this tutorial. I'll also put the ones that I find out in red. Can you also briefly describe how to use it (in code)
« Last Edit: April 14, 2009, 12:56:08 PM by AGlass0fMilk »

Also, I have a command for my Rules creator button that syntaxes, I used the MacroSaver as a reference and this is the code:
Code: [Select]
function saverules()
{
%rules = rulestxt.getValue();
if(%rules $= "")
{
MessageBoxOk("Uh-Oh!","Please fill in the Rules box, or un-check the show rules box!");
return;
}
else
{
%file = new FileObject();
%file.openForWrite("Config/Client/Rules/rules.txt");
%file.writeLine(%rules);
canvas.popDialog(AziCity_RulesCreator);
clientCmdCenterPrint("<color:00FF00>Your rules have been saved successfully.",4);
}##
##
I don't know why it syntaxes, and I have a question, can you write to a file that is inside your zip file instead of in the config/client/blah directory?

It works! It writes the rules to the file =D
« Last Edit: April 16, 2009, 02:39:18 PM by AGlass0fMilk »

I have no idea how open for read works and read line(); works so can someone help me on this?

Bumpedy Bumpadump. Badump.
« Last Edit: April 15, 2009, 06:49:46 PM by AGlass0fMilk »

THIS TOPIC IS NOT DEAD!!!!


It's not even in there, there are lots of file console inputs, but they only find file names, file directory paths, and other file stuff. I'll have to look through some scripts but if one of you people could help, it would be appreciated. Oh and what does a swatch control do?

-EDIT-
I got it to work. I'll keep this topic up so I can ask more questions when I have them.

What does a swatch control do?
« Last Edit: April 16, 2009, 02:42:17 PM by AGlass0fMilk »

Tom

Nothing, just makes it look nicer.

It can be set to any color you want.


RTB got their icons from Mediafire 0.o Now I know where to get some icons


THANK YOU TOM! NOW I CAN HAVE GOOD ICONS!