World of Banished

MODS Garage => Tutorials => Topic started by: RedKetchup on February 12, 2017, 09:31:07 PM

Title: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on February 12, 2017, 09:31:07 PM
CommonToolbar Icon Kit.

Place this kit inside all your mods. (along with your PersonalToolbar Icon kit)
This is the common icon toolbar "at the base of the main toolbar" for all the moddlers.
All the moddlers will have all their personal Icon and will set all their mods on their personal toolbar.


ENJOY !!


********************************

PersonalToolbar Icon Kit

Do your personal Icon kit and place it inside all your mods. (along with the CommonToolbar Icon kit)
This is your personal icon toolbar "at the base of the Common Toolbar" for all your mods.
All the moddlers will have all their own personal Icon and will set all their mods on their personal toolbar.


ENJOY !!


i provide 2 examples: Personal NecoraToolbar Icon Kit.zip and Personal RedketchupToolbar Icon Kit.zip
to help you to get an idea of how to set up your own personal toolbar icon kit. (dont put other people personal kit in your mods, this is their icon. You , you will do your own one.)

when you will do a mod, you will ask to go sit on your own personal Icon (instead to go sit anywhere else in the vanilla toolbars)

like for example, my mods will be :
   Toolbar _parent = "Game\RKToolbar.rsc:RKtoolbar";   
or
   Toolbar _parent = "Game\RKToolbar.rsc:RKhousing";   
.....

and Necora will put:
   Toolbar _parent = "Game\NecoraToolbar.rsc:NecoraToolbar";   
or
   Toolbar _parent = "Game\NecoraToolbar.rsc:Necorahousing";   
.....

if you need sub toolbars... you set it up inside your personal toolbar :) (like those "housing" )

Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on February 14, 2017, 02:43:07 AM
I want to let you all know , if you want an icon set similar to me, let me know :) i gladly do.
just tell me what you want... color you want ... if it is made with letters representing your name... tell  me these letters are :)
Title: Re: How to put your new mod in the Community Toolbar !
Post by: Necora on February 16, 2017, 01:11:44 PM
Hey @RedKetchup is this the most recent?
Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on February 16, 2017, 01:17:13 PM
sorry >< now it is !

(the one with the 3D-community icon)
Title: Re: How to put your new mod in the Community Toolbar !
Post by: Necora on February 16, 2017, 01:18:56 PM
Awesome! Thanks for your work on this.

Just putting the finishing touches to my first tool bar mods, a fishing set and a dock set.
Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on September 10, 2017, 05:26:20 PM
wow just got a preview on BlackLiquid website....

this CC Modular section will be awesome !!!!!!

i really thanks you for this :) @kralyerg  !
Title: Re: How to put your new mod in the Community Toolbar !
Post by: triangle on January 07, 2018, 02:53:16 PM
Excellent Work,

your plethora of community content sharing, and helpfulness is both  impressive, and much appreciated!
Title: Re: How to put your new mod in the Community Toolbar !
Post by: Maldrick on January 26, 2018, 06:21:38 AM
Got the Community Toolbar and my personal one set up with no problem with the linked files.  Thank you for including the example, @RedKetchup .

Quote from: RedKetchup on February 14, 2017, 02:43:07 AM
I want to let you all know , if you want an icon set similar to me, let me know :) i gladly do.
just tell me what you want... color you want ... if it is made with letters representing your name... tell  me these letters are :)

I'd like to do my own because I'm learning and need to get better at this, and I don't want to bother you with it, but if you have a set of generic game icons handy and it's not too much trouble that would be very helpful.  I attempted a lift from a screenshot but they didn't come out very well.

Edit:  Just noticed there is a full set in the example zip.  Do you mind if I alter those to use?
Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on January 26, 2018, 07:13:25 AM
of course, they are there for that :)

maybe a bit of color would be awesome :)
Title: Re: How to put your new mod in the Community Toolbar !
Post by: Maldrick on January 26, 2018, 07:54:54 AM
Excellent, thank you. I'll do that.
Title: Re: How to put your new mod in the Community Toolbar !
Post by: maciej65 on November 15, 2018, 06:53:34 AM
 
Hey
I really like these fashions, but unfortunately it does not work with me.


  Toolbar _parent = "Game \ RKToolbar.rsc: RKtoolbar";
or
    Toolbar _parent = "Game \ RKToolbar.rsc: RKhousing"

I wanted a larger package of mods, but they bite each other;
Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on November 15, 2018, 10:08:04 AM
Quote from: maciej65 on November 15, 2018, 06:53:34 AM
 
Hey
I really like these fashions, but unfortunately it does not work with me.


  Toolbar _parent = "Game \ RKToolbar.rsc: RKtoolbar";
or
    Toolbar _parent = "Game \ RKToolbar.rsc: RKhousing"

I wanted a larger package of mods, but they bite each other;

hey thats MY bars as example, pickup yours!
Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on December 14, 2023, 01:23:49 PM
a new link for the files since it has been corrupted:

Title: Re: How to put your new mod in the Community Toolbar !
Post by: scoutae4 on December 19, 2023, 09:21:37 AM
Hi @RedKetchup - fyi the Personal Toolbar example is corrupt too. Do you still have that those to share? I have the basic file structure for a Personal Toolbar, but is sounds like your examples showed how to set up subfolders which would be great to know!



Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on December 20, 2023, 01:13:33 AM
that, i dont have anymore.

basically, you link your first icon to the community toolbar icon


// -----------------------------------------------------------
// ------------ Toolbar Base ---------------------------------

Toolbar base
{
StringTable _stringTable = "UI/RiseOfThePharaohStringTable.rsc";
SpriteSheet _spriteSheet = "UI/RiseOfThePharaohSpriteSheet.rsc";
}

Toolbar RiseOfThePharaohIcon
{
Toolbar _parent = "Game/CommonToolbar.rsc:CommonToolbar";
int _sortPriority = 600;

String _toolTip = "RiseOfThePharaohIconTip";   
String _image = "RiseOfThePharaohIcon";
Action _action = ShowGroup;
StringTable _stringTable = "UI/RiseOfThePharaohStringTable.rsc";
SpriteSheet _spriteSheet = "UI/RiseOfThePharaohSpriteSheet.rsc";

bool _autoHotKey = true;
}

// -----------------------------------------------------------
// -----------------------------------------------------------




// -----------------------------------------------------------
// ------------ Toolbar Base - Toolbar Main ------------------

Toolbar RiseOfThePharaohHousing : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 100;

String _toolTip = "RiseOfThePharaohHousingTip";
String _image = "RiseOfThePharaohHousing";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohRoads : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 200;

String _toolTip = "RiseOfThePharaohRoadsTip";
String _image = "RiseOfThePharaohRoads";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohStorage : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 300;

String _toolTip = "RiseOfThePharaohStorageTip";
String _image = "RiseOfThePharaohStorage";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohServices : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 400;

String _toolTip = "RiseOfThePharaohServicesTip";
String _image = "RiseOfThePharaohServices";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohFood : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 500;

String _toolTip = "RiseOfThePharaohFoodTip";
String _image = "RiseOfThePharaohFood";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohResource : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 600;

String _toolTip = "RiseOfThePharaohResourceTip";
String _image = "RiseOfThePharaohResource";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohDecorative : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 900;

String _toolTip = "RiseOfThePharaohDecorativeTip";
String _image = "RiseOfThePharaohDecorative";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohRemoving : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 1000;

String _toolTip = "RiseOfThePharaohRemovingTip";
String _image = "RiseOfThePharaohRemoving";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

Toolbar RiseOfThePharaohTesting : "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon"
{
Toolbar _parent = "RiseOfThePharaoh.rsc:RiseOfThePharaohIcon";
int _sortPriority = 10000;

String _toolTip = "RiseOfThePharaohTestingTip";
String _image = "RiseOfThePharaohTesting";
Action _action = ShowGroup;

bool _autoHotKey = true;
}

// -----------------------------------------------------------



and then your group of icons, you link those to that icon that you did linked to the commontoolbar. like for me, i have a RKhousing... RKresources... RKstorage... RKservices.... etc and i did linked to my RKicon (which is linked to the community toolbar)

i suggest to make a complete set of group icons even if you dont use it right now, that way as you are making more mods, your toolbar doesnt change which can cause problem depending the person which mods he put first in his list of mods.


here the example of RotP toolbar:

ExternalList resource
{
External _resources
[
// ------------ Toolbar Base ---------------------------------

"RiseOfThePharaoh.rsc:RiseOfThePharaohIcon",

// ------------ Toolbar Base - Toolbar Main ------------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohHousing",
"RiseOfThePharaoh.rsc:RiseOfThePharaohRoads",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStorage",
"RiseOfThePharaoh.rsc:RiseOfThePharaohServices",
"RiseOfThePharaoh.rsc:RiseOfThePharaohFood",
"RiseOfThePharaoh.rsc:RiseOfThePharaohResource",
"RiseOfThePharaoh.rsc:RiseOfThePharaohDecorative",
"RiseOfThePharaoh.rsc:RiseOfThePharaohRemoving",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTesting",

// ------------ Toolbar Main - Toolbar Housing ---------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohHuts",
"RiseOfThePharaoh.rsc:RiseOfThePharaohHouseCommon",
"RiseOfThePharaoh.rsc:RiseOfThePharaohHouseNoble",
"RiseOfThePharaoh.rsc:RiseOfThePharaohHouseHostel",

// ------------ Toolbar Main - Toolbar Road ---------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohDirtRoad",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStoneRoad",
"RiseOfThePharaoh.rsc:RiseOfThePharaohBridge",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTunnel",

// ------------ Toolbar Main - Toolbar Storage ---------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohBarns",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpiles",
"RiseOfThePharaoh.rsc:RiseOfThePharaohMarkets",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTradingPost",

// ------------ Toolbar Storage - Toolbar Barns --------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohBarnSmall",
"RiseOfThePharaoh.rsc:RiseOfThePharaohBarnMedium",
"RiseOfThePharaoh.rsc:RiseOfThePharaohBarnLarge",

// ------------ Toolbar Storage - Toolbar Stockpiles ---------
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpileAll",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpileWood",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpileStone",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpileIron",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpileFuel",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStockpileMaterial",

// ------------ Toolbar Storage - Toolbar Markets ------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohMarketSmall",
"RiseOfThePharaoh.rsc:RiseOfThePharaohMarketLarge",

// ------------ Toolbar Main - Toolbar Services --------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohWell",
"RiseOfThePharaoh.rsc:RiseOfThePharaohSchool",
"RiseOfThePharaoh.rsc:RiseOfThePharaohHospital",
"RiseOfThePharaoh.rsc:RiseOfThePharaohPharaohPalace",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTemples",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTomb",

// ------------ Toolbar Services - Toolbar Temples -----------
"RiseOfThePharaoh.rsc:RiseOfThePharaohTempleSmall",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTempleMedium",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTempleLarge",

// ------------ Toolbar Main - Toolbar Food ------------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohCropField",
"RiseOfThePharaoh.rsc:RiseOfThePharaohOrchard",
"RiseOfThePharaoh.rsc:RiseOfThePharaohPasture",
"RiseOfThePharaoh.rsc:RiseOfThePharaohFishing",
"RiseOfThePharaoh.rsc:RiseOfThePharaohHunting",
"RiseOfThePharaoh.rsc:RiseOfThePharaohGathering",
"RiseOfThePharaoh.rsc:RiseOfThePharaohApiary",

// ------------ Toolbar Main - Toolbar Resource --------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohWoodCutter",
"RiseOfThePharaoh.rsc:RiseOfThePharaohForester",
"RiseOfThePharaoh.rsc:RiseOfThePharaohApothecary",
"RiseOfThePharaoh.rsc:RiseOfThePharaohBlacksmith",
"RiseOfThePharaoh.rsc:RiseOfThePharaohWeaver",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTailor",
"RiseOfThePharaoh.rsc:RiseOfThePharaohTavern",
"RiseOfThePharaoh.rsc:RiseOfThePharaohMine",
"RiseOfThePharaoh.rsc:RiseOfThePharaohQuarry",
"RiseOfThePharaoh.rsc:RiseOfThePharaohMarbleQuarry",

// ------------ Toolbar Main - Toolbar Decorative ------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatues",
"RiseOfThePharaoh.rsc:RiseOfThePharaohObelisks",
"RiseOfThePharaoh.rsc:RiseOfThePharaohBoat01",
"RiseOfThePharaoh.rsc:Stargate",

// ------------ Toolbar Decorative - Toolbar Statues ---------
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatuesSmall",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatuesMedium",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatuesLarge",

// ------------ Toolbar Statues - Toolbar Statues Small ------
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue01",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue02",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue03",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue04",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue05",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue06",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue07",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatue08",

// ------------ Toolbar Statues - Toolbar Statues Medium -----
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM01",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM02",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM03",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM04",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM05",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM06",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM07",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueM08",

// ------------ Toolbar Statues - Toolbar Statues Large ------
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL01",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL02",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL03",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL04",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL05",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL06",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL07",
"RiseOfThePharaoh.rsc:RiseOfThePharaohStatueL08",

// ------------ Toolbar Decorative - Toolbar Obelisks --------
//"RiseOfThePharaoh.rsc:RiseOfThePharaohObelisk01",
//"RiseOfThePharaoh.rsc:RiseOfThePharaohObelisk02",
//"RiseOfThePharaoh.rsc:RiseOfThePharaohObelisk03",

// ------------ Toolbar Main - Toolbar Removing --------------
"RiseOfThePharaoh.rsc:RiseOfThePharaohFlatTool",
"Template/ClearTree.rsc:createremoval",
"RiseOfThePharaoh.rsc:RiseOfThePharaohClearTree",
"RiseOfThePharaoh.rsc:ClearCopper",


Title: Re: How to put your new mod in the Community Toolbar !
Post by: scoutae4 on December 21, 2023, 09:13:11 AM
Thanks for this @RedKetchup - I understand this in theory, but I'm still very green to coding so it's not obvious to me how you build out the subcategories.

I have a Personal Toolbar set up and working with all my categories like housing, roads, etc, and some extras I may never use (just to be future safe) but I'm pretty sure I'm going to need subcategories too. Problem is, if I wait until I need them to take care of it, it looks like it would be a monumental pain in the butt to reverse include them. And as you say, a problem for anyone I've shared the originals with.

I think I understand your first code example as what you put in your personal toolbar .rsc file in the Game folder (so for me, this is "Game>ScoutToolbar.rsc") In your example you're calling from your UI folder, I have this set up in Dialog - I guess that doesn't matter so long as the called files are where they are supposed to be?

This snippet:

int _sortPriority = ???

...this is how your prioritize the order of your icons in the menu (I assume). Your categories jump by 100s to leave room for the future in case you want to add other categories in between OR is this number the parent for subcategories (so like a subcategory for Housing that is Small Homes would be 101 or 110?)






If my personal toolbar is established like so:

Toolbar base
{
StringTable _stringTable = "Dialog/ScoutToolbarStringTable.rsc";
SpriteSheet _spriteSheet = "Dialog/ScoutToolbarSpriteSheet.rsc";
}


Then does a subcategory look like this:

Toolbar main
{
StringTable _stringTable = "Dialog/ScoutToolbarStringTable.rsc";
SpriteSheet _spriteSheet = "Dialog/ScoutToolbarSpriteSheet.rsc";
}


and is it included in the existing Personal Toolbar files or do I create new files?






If my category for housing looks like this:

Toolbar ScoutHousing : "base"
{
Toolbar _parent = "Game/ScoutToolbar.rsc:ScoutToolbar";
int _sortPriority = 100;

String _toolTip = "ScoutHousingTip";
String _image = "ScoutToolbarHousing";
Action _action = ShowGroup;

bool _autoHotKey = true;
}


Then does a subcategory for say, Small Homes, look like this:

Toolbar ScoutHousing : "main"
{
Toolbar _parent = "Game/ScoutToolbar.rsc:ScoutToolbarHousing";
int _sortPriority = 110;

String _toolTip = "ScoutSmallHomesTip";
String _image = "ScoutToolbarSmallHomes";
Action _action = ShowGroup;

bool _autoHotKey = true;
}


AND if so, is this just added into the existing existing Personal Toolbar files (at the end?) or do I create a new file?

Maybe I am overthinking everything.
Title: Re: How to put your new mod in the Community Toolbar !
Post by: kid1293 on December 21, 2023, 12:28:24 PM
(https://i.imgur.com/ue0E9T1.png)

Let's see if this works out. :)

One house on its mod menu

Quote
Toolbar base
{
   StringTable _stringTable = "UI/HillsideStringTable.rsc";
   SpriteSheet _spriteSheet = "UI/HillsideSpriteSheet.rsc";
}

ExternalList resource
{
   External _resources
   [
      "HillsideHouseGround",
      ...

   ]
}

Toolbar Hillside : "base"
{   
   Toolbar _parent = "Game/KIDToolbar.rsc:KIDThemed";
   int _sortPriority = 500;

   String _toolTip = "HillsideTip";   
   String _image = "BuildHillside";
   Action _action = ShowGroup;

   bool _autoHotKey = true;
}

Toolbar HillsideHouseGround
{   
   Toolbar _parent = "KidHillsideVillage.rsc:Hillside";
   int _sortPriority = 100;

   Action _action = Tool;
   ComponentDescription _tool = "Template/HillsideHouseGround.rsc";

   bool _autoHotKey = true;
}

One house in a submenu on the mod menu

Quote

Toolbar base
{
   StringTable _stringTable = "UI/HillsideStringTable.rsc";
   SpriteSheet _spriteSheet = "UI/HillsideSpriteSheet.rsc";
}

ExternalList resource
{
   External _resources
   [
      "HillsideHouseGround",
      ...

   ]
}

Toolbar Hillside : "base"
{   
   Toolbar _parent = "Game/KIDToolbar.rsc:KIDThemed";
   int _sortPriority = 500;

   String _toolTip = "HillsideTip";   
   String _image = "BuildHillside";
   Action _action = ShowGroup;

   bool _autoHotKey = true;
}

Toolbar HillsideHouse : "base"
{   
   Toolbar _parent = "KidHillsideVillage.rsc:Hillside";
   int _sortPriority = 100;

   String _toolTip = "HillsideHouseTip";   
   String _image = "BuildHillsideHouse";
   Action _action = ShowGroup;

   bool _autoHotKey = true;
}

Toolbar HillsideHouseGround
{   
   Toolbar _parent = "KidHillsideVillage.rsc:HillsideHouse";
   int _sortPriority = 100;

   Action _action = Tool;
   ComponentDescription _tool = "Template/HillsideHouseGround.rsc";

   bool _autoHotKey = true;
}

Title: Re: How to put your new mod in the Community Toolbar !
Post by: RedKetchup on December 22, 2023, 12:55:13 PM
i  am sorry i ll try to answer tomm
(i did started yesterday but got brain dead due confusion..... i did stop and saved the text i did so far.)
Title: Re: How to put your new mod in the Community Toolbar !
Post by: scoutae4 on December 22, 2023, 09:13:00 PM
I really appreciate that @RedKetchup ! No rush, it's the holidays :)

@kid1293 this code will be very helpful when I need categories on top of categories! 21 beers! For now I need to take baby steps. My head is spinning  ;D

Merry Christmas!!
Title: Re: How to put your new mod in the Community Toolbar !
Post by: kralyerg on December 23, 2023, 05:08:45 PM
Quote from: scoutae4 on December 21, 2023, 09:13:11 AM
This snippet:

int _sortPriority = ???

...this is how your prioritize the order of your icons in the menu (I assume). Your categories jump by 100s to leave room for the future in case you want to add other categories in between OR is this number the parent for subcategories (so like a subcategory for Housing that is Small Homes would be 101 or 110?)

Yes, this is how you prioritize the order the icons come in the menu.  It doesn't matter if you go 1, 2, 3 or 100, 200, 300.  In the modkit files, Luke had done 100, 200, 300.., so many people kept that numbering system, but you can number them however you like.

It's not related to any parent or sub categories.  Each level gets their own distinct ordering system. 
Title: Re: How to put your new mod in the Community Toolbar !
Post by: scoutae4 on December 23, 2023, 05:47:58 PM
Thanks for the clarity @kralyerg :) I'm going to take another stab at this after the holidays. I caught a humdinger of a cold and my head is loopy. It's going to be a pajama and stupid movies Christmas - which doesn't sound too bad actually...

I hope you all have a wonderful holiday!!  ;D
Title: Re: How to put your new mod in the Community Toolbar !
Post by: catty-cb on December 29, 2023, 01:29:56 AM
Thanks for the community toolbar, have been playing around with modding over at simtropolis and have turned a mushroom into a blacksmith along with adding myself into the community toolbar   :)