Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
how many gifts I will find under the xmas tree this year ?
Re: Ask a simple question, get a simple answer
I don't think you can scale text, but there are two other things that are useful for that:Thorham wrote:How can I set the scale of a custom GUI? By default, elements like fonts always have the same size, regardless of the screen resolution. Any way to change this?
1. GraphicsContext.font() can change the typeface between "tiny", "small", "medium", and "large".
2. GraphicsContext.drawParagraph() can draw a string with a specific width, inserting newlines when necessary, and returns the width and height of the resulting text area.
Also, as far as I can tell, the size of GUI elements is determined only by screen height, not width. Width just affects their position.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- TheLastOrder
- Posts: 104
- Joined: Wed Oct 17, 2012 1:56 am
Re: Ask a simple question, get a simple answer
Question: Any idea about this:
beach_rock_wall_button_01 ????
Tried in editor, without results...
Looked for it in the forum. Nothing
Thanks as always, this is a great community
beach_rock_wall_button_01 ????
Tried in editor, without results...
Looked for it in the forum. Nothing
Thanks as always, this is a great community
Re: Ask a simple question, get a simple answer
Yeah, I was afraid that might be the case. I wanted to change some part of the existing GUI, but it will never look right in all available resolutions now.minmay wrote:I don't think you can scale text, but there are two other things that are useful for that:
1. GraphicsContext.font() can change the typeface between "tiny", "small", "medium", and "large".
2. GraphicsContext.drawParagraph() can draw a string with a specific width, inserting newlines when necessary, and returns the width and height of the resulting text area.
Re: Ask a simple question, get a simple answer
You can always draw the characters manually with GraphicsContext.drawImage2().Thorham wrote:Yeah, I was afraid that might be the case. I wanted to change some part of the existing GUI, but it will never look right in all available resolutions now.minmay wrote:I don't think you can scale text, but there are two other things that are useful for that:
1. GraphicsContext.font() can change the typeface between "tiny", "small", "medium", and "large".
2. GraphicsContext.drawParagraph() can draw a string with a specific width, inserting newlines when necessary, and returns the width and height of the resulting text area.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
Was afraid of that, too Thanks anyway.minmay wrote:You can always draw the characters manually with GraphicsContext.drawImage2().
Any way to change the modifiers for spell and weapon damage that characters get from skills? If not, then I know a way around it, but it bloats the script code.
Re: Ask a simple question, get a simple answer
Ok guys: Simple question; how do I make a new key item. Do I use define object or cloneObject?
Just want some more keys for my dungeon
Just want some more keys for my dungeon
Re: Ask a simple question, get a simple answer
LOL! Simple enough. 1d4?Drakkan wrote:how many gifts I will find under the xmas tree this year ?
Re: Ask a simple question, get a simple answer
Hey! If i use floor_trigger to get some "starting message" to point where you start, or anywhere so how i make it triggers only once? not everytime i go there. Thanks (btw im totally noob at lua but good designer )
Re: Ask a simple question, get a simple answer
Check the box that says "disableSelf".
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.