Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 953 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 953 Bytes

LiveWallpaperConfigs

This class allows you to easily create settings for Opera GX live wallpapers.

image

Installation

Download the .yymps file from the "Releases" tab in the right. Inside GameMaker:

1 - Go to menu "Tools > Import Local Package";
2 - Add all;
3 - Import.

Example

// my variables
variable_color = c_white;

// Wallpaper Configuration
lw_config = new WallpaperConfiguration([
	new WP_Section("Performance", "perf", [
		new WP_OptionSelect("Speed:", "lw_speed", ["Low", "Normal", "Blazing"], "Normal", "The wallpaper speed in frames per second"),
	]),
	new WP_Section("Appearance", "appearance", [
		new WP_OptionColor("Color", "color", c_white),
	]),
],

function(callback) {
  // update variable
  variable_color = callback.appearance.color;
});

// send to Opera GX browser
lw_config.Set();