X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4cae1268de8d90637a11732fb4804fd79cb8e6d0..c5587612e8f663b8229129b05b0115f329106563:/doc/PLUGINS
diff --git a/doc/PLUGINS b/doc/PLUGINS
index ed448fa2..c397e09c 100644
--- a/doc/PLUGINS
+++ b/doc/PLUGINS
@@ -76,6 +76,27 @@ stands for "keyword arguments") collects all addition keyword arguments
parameter, and probably more in the future. You must ignore all additional
keywords which you don't need!
+skins
+=====
+
+Generally, you can include the skin in your Screens by having a static (or
+non-static, if you really want) variable "skin", for example:
+
+class OurSmallTestScreen(Screen):
+ skin = "..."
+ def __init__(self, session):
+ Screen.__init__(self, session)
+ ...
+
+However, users can override the skin from their skin.xml. Note that the
+Screen's name (unless you override this, which is possible) is used for
+determining which skin is used. Thus, if you're choosing generic skin names
+like "TheScreen", it's likely to cause namespace clashes.
+
+Thus, please use skin names (i.e. Screen-names, unless you're overriding the
+skin name) which are unique enough to not clash. In doubt, prepend the
+pluginname like in our example.
+
autostarting plugins
====================
@@ -99,7 +120,7 @@ Configuration
Speaking about configuration, plugins must live in
-config.plugins..
+config.plugins.
and nowhere else!