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 "== Kontaktmenü ==" |
||
| Line 69: | Line 69: | ||
{{Content:MirLua/Example|code=local hMenuItem = m.AddMainMenuItem({ Name ='My menu item' })}} | {{Content:MirLua/Example|code=local hMenuItem = m.AddMainMenuItem({ Name ='My menu item' })}} | ||
== | == Kontaktmenü == | ||
=== AddContactMenuRoot === | === AddContactMenuRoot === | ||
Revision as of 01:36, 4 November 2024
Allows you to work with menus of the contact list.
Inkludieren Sie folgendes Modul: local clist = require('m_clist')
Hauptmenü
AddMainMenuRoot
Creates a root menu item in the main 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.AddMainMenuRoot('My root menu item')
AddMainMenuItem
Creates a menu item in the main 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.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
|
Menu item name. |
| position | Nein | number
|
Menu item position. |
| 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
|
MenuItem table. |
| 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' })
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' })