Dialog: Add List Item

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
Fail? the built in function takes the first list item and sets it in front, and then successively adds list items directly after the first.

EX:

Dialog - Add List Item "1"
Dialog - Add List Item "2"
Dialog - Add List Item "3"
Dialog - Add List Item "4"

will yield a list like this:

1
4
3
2

Now, before I write a new action definition to use instead of the default "Dialog - Add List Item" does anyone have any quick insight on this? Like... why it acts this way?
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
oh... think they will change this for release?

is that like ++i versus i++ basically? though why would the first list piece get stuck at the top?
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
Pretty self explanatory I thought. When I get back from work maybe.
 

SerraAvenger

Cuz I can
Reaction score
234
Pretty self explanatory I thought. When I get back from work maybe.

If your code was self explanatory, you wouldn't have had to create a thread about it. In order to see what Sc2 does internally, I need to see the source code.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
Why do I get the feeling of hostility? anyways...

like I said in my very first post...


Dialog - Add list item "string1" to TechTypesDropdown for (All players)
Dialog - Add list item "string2" to TechTypesDropdown for (All players)
Dialog - Add list item "string3" to TechTypesDropdown for (All players)

yields a list output as follows:


string1
string3
string2

anyways, i just saved all my strings in an array in the order i wanted and made a "generate list" action to generate them separately with the first one and then plugging them in backwards...so i'm over it. just thought i'd mention it since this is the sc2 mapping forum.
 

SerraAvenger

Cuz I can
Reaction score
234
Why do I get the feeling of hostility?
Probably because I don't like repeating myself. Also you didn't understand what compile output means. I thought you did, so your reply "Pretty self explanatory I thought" was to me what you might describe as hostility. Since it was obviously just a mere misunderstanding on your part, I hereby apologize for my inappropriate harshness.

like I said in my very first post...
Yeah, what you did in GUI was very self explanatory.
But when I'm asking for the "compile output", I don't want to see your input. I want to see whatever the trigger editor shows when you hit "Ctrl+F11". Best would be to show me the whole function, since stuff can be compiled very differently from what's visible in the GUI.

Your workaround might hotfix the issue, and it is the best workaround I've seen so far in the GUI community. It is very maintainable.
Still, the interesting thing is the source of that behaviour. With the next patch, you might have to rearrange your function.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
Probably because I don't like repeating myself. Also you didn't understand what compile output means. I thought you did, so your reply "Pretty self explanatory I thought" was to me what you might describe as hostility. Since it was obviously just a mere misunderstanding on your part, I hereby apologize for my inappropriate harshness.

No worries. ok so i get what you mean now. I didn't know how to even bring up the compiled version of your script. Very useful... but Still going to take some work to go through and find the parts you need XD.

Your workaround might hotfix the issue, and it is the best workaround I've seen so far in the GUI community. It is very maintainable.
Still, the interesting thing is the source of that behaviour. With the next patch, you might have to rearrange your function.

These were kind of my thoughts, and I'll know why it stops working correctly if and when they fix this issue (but i guess it's not the worst thing in the world). I'm not really a programmer... but i've taken 101 and 110 comp science... so you get the idea of my programming skills... plus i'm really not practicing it very often. It's something I feel like I have a flare for but... I really don't call myself a programmer. I'm rusty on a lot of lingo but upon hitting cntrl +F11 i was like "OHHHHHHH" XD so at least I walk away with that knowledge. I'll try and find the place where it compiles that code.

does the compiler rip your triggers appart and put the raw "alike" parts together? kind of seems that it does. might be harder to find that way.
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
This should be it:

Code:
bool gt_TechMenuCreateDialogItems_Func (bool testConds, bool runActions) {
    // Variable Declarations
    int lv_tempInt;

    // Variable Initialization
    lv_tempInt = 0;

    // Actions
    if (!runActions) {
        return true;
    }

    DialogControlCreate(gv_dialog3Tech, c_triggerControlTypePulldown);
    gv_techTypesDropdown = DialogControlLastCreated();
    DialogControlSetSize(gv_techTypesDropdown, PlayerGroupAll(), 200, 50);
    DialogControlSetPosition(gv_techTypesDropdown, PlayerGroupAll(), c_anchorTopLeft, 50, 70);
    DialogControlAddItem(gv_techTypesDropdown, PlayerGroupAll(), StringExternal("Param/Value/9274DB1E"));
    DialogControlAddItem(gv_techTypesDropdown, PlayerGroupAll(), StringExternal("Param/Value/EF94B667"));
    DialogControlAddItem(gv_techTypesDropdown, PlayerGroupAll(), StringExternal("Param/Value/1ADBF295"));
    DialogControlAddItem(gv_techTypesDropdown, PlayerGroupAll(), StringExternal("Param/Value/A10E3A39"));
    DialogControlAddItem(gv_techTypesDropdown, PlayerGroupAll(), StringExternal("Param/Value/47BB99C0"));
    DialogControlCreate(gv_dialog3Tech, c_triggerControlTypeListBox);
    gv_listBox = DialogControlLastCreated();
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 250, 350);
    DialogControlSetPosition(gv_listBox, PlayerGroupAll(), c_anchorTopLeft, 250, 75);
    gf_TechMenuSetTechItems();
    libNtve_gf_CreateDialogItemLabel(gv_dialog3Tech, 450, 200, c_anchorTopLeft, 515, 75, StringExternal("Param/Value/4972DCCC"), Color(22*100/255,128*100/255,0), true, 2.0);
    gv_infoBox = DialogControlLastCreated();
    return true;
}
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
Adding list items adds to the end now in the latest version of the editor. (which is very spiffed up might I add)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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