Plugin:MirLua/Module/m clist/de: Difference between revisions
Jump to navigation
Jump to search
Wishmaster (talk | contribs) Created page with "Position des Menüeintrags." |
Wishmaster (talk | contribs) Created page with "Struktur $MenuItem." |
||
| Line 121: | Line 121: | ||
| style="text-align:center" | {{Ls|YesNo/yes}} | | style="text-align:center" | {{Ls|YesNo/yes}} | ||
| style="text-align:center" | <code>table</code> | | style="text-align:center" | <code>table</code> | ||
| [[Special:MyLanguage/Plugin:MirLua/Module/m_genmenu#MenuItem|MenuItem]] | | Struktur [[Special:MyLanguage/Plugin:MirLua/Module/m_genmenu#MenuItem|MenuItem]]. | ||
|- | |- | ||
! scope="row" class="MirLuaParametersTable-parameter" | protocol | ! scope="row" class="MirLuaParametersTable-parameter" | protocol | ||
Revision as of 01:39, 4 November 2024
Allows you to work with menus of the contact list.
Inkludieren Sie folgendes Modul: local clist = require('m_clist')
Hauptmenü
AddMainMenuRoot
Erstellt einen Menüeintrag im Hauptmenü.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| name | Ja | string
|
Name des Menüeintrags. |
| position | Nein | number
|
Position des Menüeintrags. |
| hIcon | Nein | light userdata
|
Icon handle. |
Ergebnis
Typ: light userdata
If success, returns menu item handle, otherwise nil.
Beispiel
local hRootMenuItem = m.AddMainMenuRoot('My root menu item')
AddMainMenuItem
Creates a menu item in the main menu.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| data | Ja | table
|
Struktur MenuItem. |
Ergebnis
Typ: light userdata
If success, returns menu item handle, otherwise nil.
Beispiel
local hMenuItem = m.AddMainMenuItem({ Name ='My menu item' })
Kontaktmenü
AddContactMenuRoot
Creates a root menu item in the contact menu.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| name | Ja | string
|
Name des Menüeintrags. |
| position | Nein | number
|
Position des Menüeintrags. |
| hIcon | Nein | light userdata
|
Icon handle. |
Ergebnis
Typ: light userdata
If success, returns menu item handle, otherwise nil.
Beispiel
local hRootMenuItem = m.AddContactMenuRoot('My contact menu item')
AddContactMenuItem
Creates a menu item in the contact menu.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| data | Ja | table
|
Struktur MenuItem. |
| protocol | Nein | string
|
Name of the protocol (prefix for the service name) |
Ergebnis
Typ: light userdata
If success, returns menu item handle, otherwise nil.
Beispiel
local hMenuItem = m.AddContactMenuItem ({ Name ='My menu item' })
Traymenü
AddTrayMenuItem
Creates a menu item in the tray menu.
Parameter
| Parametername | Benötigt | Typ | Beschreibung |
|---|---|---|---|
| data | Ja | table
|
MenuItem table. |
Ergebnis
Typ: light userdata
If success, returns menu item handle, otherwise nil.
Beispiel
local hMenuItem = m.AddTrayMenuItem ({ Name ='My menu item' })