question-circle Questions about GUI coding.

  • Gary
  • Gary's Avatar Topic Author
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Hi all
More
12 Jul 2014 11:57 - 12 Jul 2014 12:03 #1 by Gary
Questions about GUI coding. was created by Gary
Hi guys
After my final high school exam, I'm back and i am now continue working on my mod Happy Roll with our team.
We found it is so difficult using Gui Editor to create or edit a gui, so i am planning to make a WYSIWYG gui creater. but before i working on the most important part of the software, i have some questions to ask:
  1. For a GUI Control, what members/attributes(like:"profile" "horizSizing" "position" "extent" and so on. i don't know what are their name. it just like members of a class) are required ?
  2. What does horizSizing and vertSizing means?(i tried to use "left" and "top" to set a GUI Control's horizSizing and vertSizing attribute, but it seems like the control align with right and bottom side)...
oh.. here is a picture that that I've done. i will upload this program after i finished it if anyone can help me about my questions.


Thank you very much
Gary
//
added
for the first question:
profile, horizSizing, vertSizing ,position ,extent ,minExtent , visible, bitmap
is that ALL attributes that any Gui Controls MUST have ?

HappyRoll Mod Leader
C++ Beginner
Attachments:
Last edit: 12 Jul 2014 12:03 by Gary. Reason: added

Please Log in or Create an account to join the conversation.

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Administrator
  • Administrator
  • At college, may not be around
More
12 Jul 2014 18:22 - 12 Jul 2014 18:24 #2 by HiGuy
Replied by HiGuy on topic Questions about GUI coding.
This is a PDF file I use for getting all the info about GUIs and stuff, it should have roughly everything that you need (warning: long): http://cl.ly/0D0Q1R0Z2g1K . You should check out pages 288-354, those contain all the GUI information. If it's too long, I can just dump a list of all the attributes for each Gui class.

PQ in a nutshell
function clientcmd12dothepq() {
    commandToClient(LocalClientConnection, '34onthedancefloor');
}
Last edit: 12 Jul 2014 18:24 by HiGuy.

Please Log in or Create an account to join the conversation.

  • Gary
  • Gary's Avatar Topic Author
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Hi all
More
13 Jul 2014 03:13 #3 by Gary
Replied by Gary on topic Questions about GUI coding.
Thank you , i downloaded this pdf just now and i am going ro read it
before i read it, could you tell me what attributes are all Gui Controls common have and it must included in a gui file?
when the program output a .gui file, it will only output the important attributes of the Gui Controls. for your pdf guide, it seems that it included all attributes that have the important attributes and not important attributes. (maybe i should read your pdf guide first LOL)
Thanks
Gary

HappyRoll Mod Leader
C++ Beginner

Please Log in or Create an account to join the conversation.

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Administrator
  • Administrator
  • At college, may not be around
More
13 Jul 2014 04:05 #4 by HiGuy
Replied by HiGuy on topic Questions about GUI coding.
Some important attributes (at least ones that all GuiControl have) are:
  • profile - The GuiControlProfile for the GuiControl
  • horizSizing - (left | right | center | width | relative)
  • vertSizing - (top | bottom | center | width | relative)
  • position - "x y"
  • extent - "x y"
  • minExtent - "x y"
  • visible - (true | false)
  • variable - Variable to update with the control's "value"
  • command - Thing that gets called
  • altCommand - See command
  • accelerator - Key that activates the command
  • helpTag - No idea, always "0"

Those are the main ones, although each class has its own new fields.

PQ in a nutshell
function clientcmd12dothepq() {
    commandToClient(LocalClientConnection, '34onthedancefloor');
}
The following user(s) said Thank You: Gary

Please Log in or Create an account to join the conversation.

  • Gary
  • Gary's Avatar Topic Author
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Hi all
More
14 Jul 2014 12:03 #5 by Gary
Replied by Gary on topic Questions about GUI coding.
Thank you very much.
I am working on that~

Gary

HappyRoll Mod Leader
C++ Beginner

Please Log in or Create an account to join the conversation.

Moderators: AayrlKalle29Regislian