From 2b79582e99654282a03ee10424db380942b04b10 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Wed, 22 Aug 2012 12:28:01 +0400 Subject: [PATCH] Implement a policy of marking DFHack-owned screens with a signature. --- LUA_API.rst | 9 ++++++++- Lua API.html | 6 +++++- library/lua/gui.lua | 10 ++++++++++ library/lua/gui/dwarfmode.lua | 6 ++++++ library/modules/Screen.cpp | 4 ++++ 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/LUA_API.rst b/LUA_API.rst index d6044c235..5631e93a2 100644 --- a/LUA_API.rst +++ b/LUA_API.rst @@ -1211,6 +1211,8 @@ The screen module implements support for drawing to the tiled screen of the game Note that drawing only has any effect when done from callbacks, so it can only be feasibly used in the core context. +Basic painting functions: + * ``dfhack.screen.getWindowSize()`` Returns *width, height* of the screen. @@ -1277,7 +1279,12 @@ be feasibly used in the core context. In order to actually be able to paint to the screen, it is necessary to create and register a viewscreen (basically a modal dialog) with -the game. Screens are managed with the following functions: +the game. + +**NOTE**: As a matter of policy, in order to avoid user confusion, all +interface screens added by dfhack should bear the "DFHack" signature. + +Screens are managed with the following functions: * ``dfhack.screen.show(screen[,below])`` diff --git a/Lua API.html b/Lua API.html index 610202ce3..0f1ecc3b1 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1391,6 +1391,7 @@ Returns true, was_only_planned if removed; or false if none fo

The screen module implements support for drawing to the tiled screen of the game. Note that drawing only has any effect when done from callbacks, so it can only be feasibly used in the core context.

+

Basic painting functions:

In order to actually be able to paint to the screen, it is necessary to create and register a viewscreen (basically a modal dialog) with -the game. Screens are managed with the following functions:

+the game.

+

NOTE: As a matter of policy, in order to avoid user confusion, all +interface screens added by dfhack should bear the "DFHack" signature.

+

Screens are managed with the following functions: