Plugin:MirLua/Module/m clist/de: Difference between revisions
Jump to navigation
Jump to search
Wishmaster (talk | contribs) No edit summary |
Wishmaster (talk | contribs) Created page with "Erstellt einen Menüeintrag im Hauptmenü." |
||
| Line 45: | Line 45: | ||
=== AddMainMenuItem === | === AddMainMenuItem === | ||
Erstellt einen Menüeintrag im Hauptmenü. | |||
==== {{Ls|MirLua/Modules/parameters}} ==== | ==== {{Ls|MirLua/Modules/parameters}} ==== | ||
Revision as of 01:51, 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 Root-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
Erstellt einen Menüeintrag im Hauptmenü.
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
|
Struktur MenuItem. |
Ergebnis
Typ: light userdata
If success, returns menu item handle, otherwise nil.
Beispiel
local hMenuItem = m.AddTrayMenuItem ({ Name ='My menu item' })