Search found 6 matches
- Tue May 07, 2024 8:10 am
- Forum: Modding help
- Topic: How to get the GUI element "camera" working
- Replies: 2
- Views: 240
Re: How to get the GUI element "camera" working
Alright so I solved it. Apparently this element needs to be styled properly and doesn't work out of the box. Here's what I did; Data.lua local styles = data.raw["gui-style"].default styles["my_camera_style"] = { type = "camera_style", horizontally_stretchable = "on...
- Mon May 06, 2024 8:02 pm
- Forum: Modding help
- Topic: How to get the GUI element "camera" working
- Replies: 2
- Views: 240
How to get the GUI element "camera" working
Hi there, I'm having trouble to get a "camera" GUI element on my frame. I have tried literally everything up until the point that I disabled all my mods and created a new test mod with only the mandatory info.json and following control.lua: script.on_init(function() --Create a global varia...
- Fri Oct 13, 2023 5:00 pm
- Forum: Implemented for 2.0
- Topic: Export currently held blueprint library object to item
- Replies: 18
- Views: 4408
Re: Export currently held blueprint library object to item
Adding my +1 here too! Personally I never store blueprints in game (character, chest, entity, whatever) but always in my personal blueprint library. Almost all blueprint altering mods will benefit from this feature.
- Fri Oct 13, 2023 4:23 pm
- Forum: Modding help
- Topic: Solved - player.is_cursor_blueprint always returns true?
- Replies: 5
- Views: 622
Re: player.is_cursor_blueprint always returns true?
I feel so stupid now..
Thanks for this insight!
Thanks for this insight!
- Thu Oct 12, 2023 11:31 pm
- Forum: Modding help
- Topic: Solved - player.is_cursor_blueprint always returns true?
- Replies: 5
- Views: 622
Re: player.is_cursor_blueprint always returns true?
With 'no matter what item I select' I mean any item, being it a dumb stick to a rocket silo, selection tool, cusom mod items, you name it.
- Thu Oct 12, 2023 9:20 pm
- Forum: Modding help
- Topic: Solved - player.is_cursor_blueprint always returns true?
- Replies: 5
- Views: 622
Solved - player.is_cursor_blueprint always returns true?
So I'm probably the gazillionth person trying to read blueprints from libraries and dove into the API docs to find player.is_cursor_blueprint and player.cursor_stack.is_blueprint, which should return a true/false whether the player is holding a blueprint item. Now I tried and tested a million varian...