Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Includes

creewick edited this page Jun 29, 2022 · 1 revision

Context

#@#/Scripts/Includes/Context.ini

Add the ability to add context menus for your widget. You can have different context menus inside a single widget. It's already included inside Widget.inc

Usage

Create a file #@#/Scripts/Contexts/[your_context].ini with the following pattern and fill it with your labels and actions.

[Variables]
[your_context]ContextTitle=
[your_context]ContextAction=
[your_context]ContextTitle2=
[your_context]ContextAction2=
...

Then, if you need to access this context menu by clicking a meter, use this code:

LeftMouseUpAction=[!SetVariable Context "[your_context]"][!SkinCustomMenu]

Settings

#@#/Scripts/Includes/Settings.ini

A template to show a settings screen. Show a localized widget title, description and Save button.

Clone this wiki locally