[Classroom] GUI 101

PurgeandFire

zxcvmkgdfg
Reaction score
509
GUI 101

Introduction:

"What will I learn?"
In this class, you will learn the basics and get an introduction to GUI triggering. I will post every Friday or Saturday, depending on how much time I have.

Lesson Plans:

Here are the lessons to be learned in class:
Introduction
- What is GUI
- How is GUI Useful
- How hard is GUI


Lesson 1: Lesson Date: April 27 or 28
- Triggers
- Conditions
- Actions
- Events
- Assignment


Lesson 2: Lesson Date: May 4 or 5
- Simple Text Display Trigger
- Variables
- Manipulating Variables
- Assignment


Lesson 3: Lesson Date: May 11 or 12
Code:
- Generals:
- Custom Scripts 
- Setting Variables 
- Integer Loops 
- If/Then/Elses
- Assignment


Lesson 4: Lesson Date: May 18 or 19
- Presets
- Actions' Function Options
- Values
- Assignment


Lesson 5: Test Review Lesson Date: May 25 or 26
- Assignment (Test)

More to come soon...

Introduction:

GUI is an interface for JASS triggering. GUI stands for:
- [G]raphical
- ser
- nterface
GUI contains many triggers that help you make your game much more interesting and fun. GUI can help you do that and perform many things that you can't perform with just WE without triggers. Without triggers, many custom games would not exist and the melee games would be practically the only games to play! GUI is very simple and easy to understand, compared to JASS which is harder but proved to be more efficient. GUI is practically the first step in JASS, because most JASS tutorials require at least some knowledge of GUI. GUI is great for people new to the editor, so I will teach it so that everyone may learn.

Class Info:

The classes will have small lessons on each subject for the day, and you will be assigned homework after the lesson. The homework won't be too hard, I'll try to make it not too easy or hard, but average.

Posting Rules:

Please keep this thread empty of spam. Please do not post off-topic things, please keep it on-topic. You may make an off-topic remark or something like that, but please do not make it long so that it creates practically a sub-thread. Thank you!

Final Notes:

- Assignments aren't due, but it is good to turn them in...
- +rep to people who do well on their assignments
- If you need help, post here or wherever the lesson is.
- If you have any ideas/suggestions for lessons or general GUI 101, please post here or preferably PM me.
- I will only start this if at least 5 members sign up.
- You have until the next class, ( a week ), to complete the assignments.
- If you wish to be added, please post here, though you may PM me if you wish.

Members List:

  • rodead
  • hi_im_bob
  • pheonixashes
  • uareanoob
  • thedude
  • MapMaker
  • MaaxeEvid
  • Swish
  • ~GaLs~
  • denmax
  • TheK1ll3r
  • THE_X
  • Lanboy
  • trigger_newb
  • Newbwc3
  • Kota
  • Norava
  • Ghost32
  • Enrutcon
  • __________
  • __________
  • __________
  • __________
  • __________

Member Count: 18

[Note: As uareanoob said, this just makes it look organized, there is no limit to the members for this.]

Please join.
Thank you!
~Purgeandfire

Lesson 1:

Part I

Triggers:

Triggers are an area, that allows you to call multiple functions to configure your map. (M-W Definition: Something that acts like a mechanical trigger in initiating a process or reaction)

Triggers can allow multiple things in your game. If you have ever played a non-melee map, probably almost 90% or more of them are triggered. To create a trigger, you can do multiple actions to create it. There is a:
  • Hotkey Way
  • Icon-click Way
  • Right Click the Category and click "New Trigger"

Before we do this, you must have the trigger editor open. To do this, you can either click the icon that looks like this: View attachment 8983, or click the hotkey (F4), or you can go to Module | Trigger Editor. Once you have that open, you can create a trigger.

Icon-Click Way:

You can click this icon to create a new trigger that is located in the upper trigger section toolbar that looks like this: View attachment 8984

Hotkey Way:

Have the trigger editor open and click "F4".

Right Click category and Click:

Or you can right click the category and click the "New Trigger" selection:
==--Example Picture:--==
View attachment 8985

After you've done that, you can name your trigger. Name it whatever you want, but make sure that it isn't the same as a current existing trigger you've made.

If you do that, it should display this in this order after you click it:
View attachment 8978

Part 2​

View attachment 8980

Events determine whenever the trigger actually fires. Triggers do not run immediately after or when the game begins, unless you configure it to. There are a lot of events, so Blizzard put them into categories to help us out.

To create an event, you can simply click the event icon or press the hotkey (CTRL + E).

Then, choose your event and press "OK" so that it appears on your trigger.

View attachment 8979

Conditions are devices that allow you to have the game or an object or a player etc., meet certain requirements. Conditions, too, are organized in categories, though there are much more conditions than events. Conditions are categorized by what the requirement is. If you want to check if a unit is of the type "Footman" or any other unit type, you use go to "Unit-Type" comparisons. Boolean comparisons are much different than the other conditions. Boolean comparisons contain a lot of types of conditions, though they check if something is "True" or "False". This would be used to do something like this:
Code:
(Triggering Unit) is Dead Equal to True

This checks if the unit is dead. There are much more than just this, and they will extremely help in maps. Conditions can also be used in if/then/else functions, which I will talk about in another lesson.

To create a condition, click the icon (View attachment 8979) or you can just press the hotkey (CTRL + D).

View attachment 8981

Actions are certain functions that can be called. Actions are also organized in categories, and determine what the trigger will do. Actions are extremely essential to triggers, and they won't work without it unless your trigger does not need them, which I think is impossible, unless it is real weird or makes a unit do nothing or something like that.

Actions contain probably over 100 functions, which are all usable in your map. These contain many useful functions such as:
Code:
Unit - Explode <Unit>

To create actions, you can click the icon (View attachment 8981) in the toolbar above or click the hotkey (CTRL + R).

Browse through an select the one you like.

Assignment:

Difficulty - 0/10

Create a trigger named "Poo". Make the event "Unit - A unit Dies". Then create a condition that says "(Owner of (Triggering unit)) Equal to Player 1 (Red)". Then create an action that says "Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees".

Challenge:
If you want to challenge yourself and if you know this, fix the leak in the action by setting it to a variable and removing it.

Helpful Hints:
- Unit - A unit dies
Location : Events | Unit | Generic Unit Event

- (Owner of (Triggering unit)) Equal to Player 1 (Red)
Location : Conditions| Player Comparison

- "Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees"
Location : Actions | Unit | Create Units Facing Angle


Turning In Homework:

If you finish your really easy homework, you can post the trigger code here, or PM me, or even contact me through email:
[email protected]

I hope this helps!

Note To All:
I am still taking in students, so if you would like to join, you may post here. :D
 

pheonixashes

Those who misplace trust in gods learn their fate.
Reaction score
65
NOTE: This is not the same as Tonks' GUI: Basics Classroom thread.

GUI: Basics covers the basics of most of the GUI language, while GUI: 101 covers the basics, but is designed for more of a comprehensive background on the GUI Language.

In short, GUI: Basics is a crash course, while GUI: 101 is in-depth on the basics.

Carry on.
 
I

IKilledKEnny

Guest
> this looks exacly like tonk's with a bit of a few stuff added....

Tonk's classroom talks about spesific category in GUI which is "-General", however I see that PurgeandFire takes it to the next step and explain about GUI in whole.
 

Miz

Administrator
Reaction score
424
There both GUI but this is just showing it to you
Tonks is the class after this where you go farther and then GUI advanced :p
and GUI spells making and etc.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
this looks exacly like tonk's with a bit of a few stuff added....
Tonk's goes in depth, mine just covers small but important things to know about GUI...

> this looks exacly like tonk's with a bit of a few stuff added....

Tonk's classroom talks about spesific category in GUI which is "-General", however I see that PurgeandFire takes it to the next step and explain about GUI in whole.

Thanx...

I intend to give a bit more in-depth teaching of the functions presented, whereas Purge is covering a broader area.

Yup, I just cover the bordering area for Tonk's, not every single function.

There both GUI but this is just showing it to you
Tonks is the class after this where you go farther and then GUI advanced :p
and GUI spells making and etc.

Yup.

that cant work out so well. that rule should be removed because if some one turned it in late and they got a bad grade their like wtf
Shit double post my bad.

I'll remove it... Thanx for pointing that out.

>>>>Updated<<<<

Note to All: Sorry, the lesson has been cancelled this week, it will be performed next week. As I said, I will only do this as long as 5 or more members join. Sorry for any misunderstandings, especially sorry to rodead cuz he is a member. (Only 1 so far) :(
 

rodead

Active Member
Reaction score
42
what if there are 2 members?

Do you want go on with the class if there are less memebers?:D i hope so you go on i need to learn GUI :p
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Just w8 1-2 days... Looks like this won't work out, but it is alright. Besides, hi_im_bob is still pending his choice, if more people don't come, he'll leave, so I need to get more people first... :(

If this doesn't work out though, I can PM you everything I know about GUI but still have it as if it is a class, except I'll be kind of like a tutor to you since you'll be the only one... :D
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Sure, thanx, but please do not take too much pity on me. But I will allow some, jk. :D

EDIT: --== Updated ==-- Post Count: 5! I will start the lesson on Friday, hopefully, otherwise Saturday. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top