question-circle Questions about GUI coding.

  • Gary
  • Gary's Avatar Topic Author
  • Offline
  • Intermediate Marbler
  • Intermediate Marbler
  • Hi all
  • Posts: 80
  • Thank you received: 8
12 Jul 2014 11:57 - 12 Jul 2014 12:03 #1
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
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1333
  • Thank you received: 604
12 Jul 2014 18:22 - 12 Jul 2014 18:24 #2
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): 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.

This signature is real code
Code:
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
  • Posts: 80
  • Thank you received: 8
13 Jul 2014 03:13 #3
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
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1333
  • Thank you received: 604
13 Jul 2014 04:05 #4
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.

This signature is real code
Code:
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
  • Posts: 80
  • Thank you received: 8
14 Jul 2014 12:03 #5
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: Doomblah
Time to create page: 0.785 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.