Open mindrage opened 10 years ago
Wouldn't it be more efficient if you create your own list of items using the item palette? You can easily do that, check out modules/mapeditor_itempalette/extraItem.lua, there you can add whatever you want.
Also do not forget to check out modules/mapeditor_itempalette/itempalette.lua and make like the others, e.g. for Stairs
as you can see in extraItem.lua it is:
comboBox:addOption("Stairs", ItemCategoryStairs)
(That's to choose what to display) You don't have to make ItemCategoryWHATEVER a constant, you can just make it any number greater than 18 but you can always make your own constant in modules/lib/const.lua like the others.
I know finding out the ID of the items you want can be a pain in the arse, I'll try to make this shit more robust.
Just leaving this here.
A robust idea would be, palette list creation from within the map editor w/o source code editing, and choosing items you want from already existent palettes. There would then be 2 modes, first mode is normal selection and so on, second mode editing palette itself which has the functionality I stated.
However, for now, we'll create a wiki page to understand how palette works and how to make own list.
we all know that mappers must shift between items every so often, that they get tired of it. To solve this is quite simple. You have your keys from (0 to 9 or others) which all can contain an brush/item. Its would be located at the bottom at the screen with a Combobox as the most left side of the toolbar. That combo box is a list of your own sets which you can switch from. A create new /remove button for the sets can be located at the side of the box. The items can from the pallettes can be drag and dropped into the a slot. Alternatively the scroll button could switch the item selected in the toolbar, instead of zooming, where zooming could be done with ctrl+scrolling. The combobox should also allow quick filtering by typing when the control is selected.
This would really increase the speed for mappers that likes RAW.
To simplify a bit: Imagine the minecraft item bar, but scrolling trough items, and list of custom sets.