[LIB MOD 0.14] Style & Shortcut v0.0.8

Topics and discussion about specific mods
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

[LIB MOD 0.14] Style & Shortcut v0.0.8

Post by aubergine18 »

Define LuaGuiElement style prototypes and keyboard shortcuts... in style!

Example of frame style definition (compare with vanilla):

Image
Button style example
Links:
Last edited by aubergine18 on Sat Sep 17, 2016 5:29 pm, edited 8 times in total.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style v0.0.2 (alpha)

Post by aubergine18 »

v0.0.2 released - adds support for scroll pane styles
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style v0.0.3 (alpha)

Post by aubergine18 »

v0.0.3 released - adds support for checkboxes and more :)
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style v0.0.4 (alpha)

Post by aubergine18 »

v0.0.4 released - adds `shortcut` helper for defining `custom-input` prototypes; keyboard shortcuts that trigger custom named events.

Code: Select all

shortcut 'Shift + Control + P` { -- automatically converts to uppercase
  event = 'my-event-name';
  scope = 'self'; -- limit event scope to my mod
}
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style v0.0.5 (beta)

Post by aubergine18 »

v0.0.5 released - adds `style.textfield` for defining `textfield_style` prototypes.

As the API is nearly complete, with only a couple more features to add, the mod has now entered beta testing phase. Any feedback most welcome!
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style v0.0.6

Post by aubergine18 »

v0.0.6 released - The largest update yet, and the mod is now considered production ready!

Add: table.style - define table_style prototypes (#5)
Add: shortcut now logs all custom-input prototypes to game log file (#15)
Add: shortcut.defined - check if a key combination is already defined
Improve: <Color> properties auto-parse shortform notations such as hex color codes (#17)
Improve: shortcut now accepts a preference list of keys (#13)
Improve: Lots of code simplified and improved (#14)
Improve: .api property (value true) added to APIs: (#16)
- style.api, sound.api, image.api and shortcut.api
- enables mods to check that valid API globals are present (eg. not overwritten by some other mod)
Improve: Massive improvements to documentation, including:
- Version numbers now clearly stated for all features
- Added some missing links and content, for example style.parse (this will be getting renamed soon)
- Improved formatting of bullet lists
- Fixed some issues with sidebar navigation
Fixed: sound.random no longer breaks if passed an array (#12)
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style & Shortcut v0.0.7

Post by aubergine18 »

v0.0.7 released:

* Add: `style.radiobutton` - create `radiobutton_style` prototypes (#18)
* Add: `.scalable` - all types now have a `.scalable` property because this (#28)
* `true` = element will scale automatically when game window resizes
* `false` = element will remain fixed size
* Add: `style.expand` - new name for `style.parse` (#20)
* Improve: Significantly smaller mod filesize (removed git history from zip, duh!)
* Deprecate: `style.parse` (will be removed in v1.0), use `style.expand` instead (#25)
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [LIB MOD 0.14] Style & Shortcut v0.0.8

Post by aubergine18 »

v0.0.8 released:

* Add: style.font - define new sizes for existing fonts, or add custom fonts
* Add: image.animation - for use with entity prototypes
* Add: .priority and .tint properties now on all image types
* Improve: Documentation home page improved
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Mods”