Plugin:MirLua/Module/m icolib/de: Difference between revisions
Jump to navigation
Jump to search
Wishmaster (talk | contribs) Created page with "Eindeutiger Name des Icons." |
Wishmaster (talk | contribs) Created page with "Eindeutiger Name des Icons." |
||
| Line 61: | Line 61: | ||
| style="text-align:center" | {{Ls|YesNo/yes}} | | style="text-align:center" | {{Ls|YesNo/yes}} | ||
| style="text-align:center" | <code>string</code> | | style="text-align:center" | <code>string</code> | ||
| | | Eindeutiger Name des Icons. | ||
|} | |} | ||
Revision as of 01:44, 4 November 2024
Allows you to work with icons.
Inkludieren Sie folgendes Modul: local icolib = require('m_icolib')
AddIcon
Registriert ein Icon.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| name | Ja | string
|
Eindeutiger Name des Icons. |
| description | Ja | string
|
Beschreibung. |
| section | Nein | string
|
Section name in Miranda icon settings. By default plugin name (MirLua) is used. |
| path | Nein | string
|
Default icon file to use. By default path to executable file of Miranda NG is used. |
Ergebnis
Typ: light userdata
Returns icon handle if icon was registered successfully, otherwise nil.
Beispiel
local hIcon = icolib.AddIcon('iconUniqueName', 'My super icon')
GetIcon
Returns icon handle.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| name | Ja | string
|
Eindeutiger Name des Icons. |
Ergebnis
Typ: boolean
Returns icon handle if icon was found, otherwise nil.
Beispiel
if icolib.GetIcon('iconUniqueName') then
print('Icon iconUniqueName exists')
end
GetIconHandle
RemoveIcon
Entfernt ein Icon.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| name | Ja | string
|
Eindeutiger Name des Icons. |
Beispiel
icolib.RemoveIcon('iconUniqueName')