wowdev / noggit3

The currently premier map editor for World of Warcraft in version 3.3.5a.
GNU General Public License v3.0
123 stars 38 forks source link

Script Brushes: LUA Lamer's Wishlist #95

Open ihm-tswow opened 3 years ago

ihm-tswow commented 3 years ago

Transferred from https://github.com/tswow/noggit3/issues/42 Originally by https://github.com/gratural

Ihm, good day! Or night! Have few small propositions about adding script fuctionaly, mostly regarding by tool usability. I sorting they on importance, by my vision.

  1. Hotkey for script menu. Sometimes, when change variables in script panel, Noggit are lost window focus and switch to one of other editor mode. My suggestion - tilda key ("~") she are convenient and unused.
  2. Timer or wait() function. Еvent "on_click" not always are comfortly and "on_click_hold" can overload Noggit by uncareful using
  3. New tag "group" for script setting panel. Which grouping few paramets in one line for space saving. Takes as argument upon 2-3 previosly declared tags..
  4. Function for temporary chunk\vertices coloring. As example for colorize chunks wich are cleared AreaId's by "clear" script. (Shader color + wait func?)

(?) And if make a scripting menu unpined? Like in Tile mode (U)?

ihm-tswow commented 3 years ago

(my original response)

  1. I think this can be added fairly easily.
  2. I'm not sure about the use cases for this, do you have an example where this would be useful? Timers always have issues about where they should be fired, I guess it'd be possible to just have an event that's fired from the same place as the other events so nothing too weird would happen. Lua can't handle worker threads, and I would try to avoid one regardless.
  3. I'm planning to do this in the future, would probably be something like a row_mode / column_mode toggle on the brush itself.
  4. I have code for chunk coloring, but vertex coloring is more difficult. I'm not very good at rendering code.