[resolution], [foreground], [draw], [image]

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
ZombieKnight
Posts: 250
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

[resolution], [foreground], [draw], [image]

Post by ZombieKnight »

Hi
I'm missing documentation to this core code.
Any idea how [background], [foreground] and {[draw]+[image]} works?

Code: Select all

[resolution]
		[background]
			[draw]
			[/draw]
		[/background]
		[foreground]
			[draw]
				[image]
					x = "(width - {__GUI_IMAGE_DISPLAYED_WIDTH})"
					y = "(height - image_height)"
					w = "{__GUI_IMAGE_DISPLAYED_WIDTH}"
					h = "{__GUI_IMAGE_DISPLAYED_HEIGHT}"
					name = "(portrait_image)"
					mirror = "(portrait_mirror)"
				[/image]
			[/draw]
		[/foreground]
	[/resolution]
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Post Reply