<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.miranda-ng.org/index.php?action=history&amp;feed=atom&amp;title=Plugin%3AMirLua%2FModule%2Fm_icolib%2Fen</id>
	<title>Plugin:MirLua/Module/m icolib/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.miranda-ng.org/index.php?action=history&amp;feed=atom&amp;title=Plugin%3AMirLua%2FModule%2Fm_icolib%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.miranda-ng.org/index.php?title=Plugin:MirLua/Module/m_icolib/en&amp;action=history"/>
	<updated>2026-10-17T04:33:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.miranda-ng.org/index.php?title=Plugin:MirLua/Module/m_icolib/en&amp;diff=41308&amp;oldid=prev</id>
		<title>FuzzyBot: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://wiki.miranda-ng.org/index.php?title=Plugin:MirLua/Module/m_icolib/en&amp;diff=41308&amp;oldid=prev"/>
		<updated>2022-02-09T23:04:07Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
Allows you to work with icons.&lt;br /&gt;
&lt;br /&gt;
{{Ls|MirLua/Modules/include_info}} &amp;lt;code&amp;gt;local icolib = require(&amp;#039;m_icolib&amp;#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== AddIcon ===&lt;br /&gt;
Registers an icon.&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/parameters}} ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|MirLua/Modules/param_name}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|MirLua/Modules/required_param}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|Content/TableHeaders/type}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|Content/TableHeaders/description}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;MirLuaParametersTable-parameter&amp;quot; | name&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | {{Ls|YesNo/yes}}&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;&lt;br /&gt;
| Unique icon name.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;MirLuaParametersTable-parameter&amp;quot; | description&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | {{Ls|YesNo/yes}}&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;&lt;br /&gt;
| Description.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;MirLuaParametersTable-parameter&amp;quot; | section&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | {{Ls|YesNo/no}}&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;&lt;br /&gt;
| Section name in Miranda icon settings. By default plugin name (MirLua) is used.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;MirLuaParametersTable-parameter&amp;quot; | path&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | {{Ls|YesNo/no}}&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;&lt;br /&gt;
| Default icon file to use. By default path to executable file of Miranda NG is used.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/result}} ====&lt;br /&gt;
{{nbsp|5}}{{Ls|MirLua/Modules/type}} &amp;lt;code&amp;gt;light userdata&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{nbsp|5}}Returns icon handle if icon was registered successfully, otherwise &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/example}} ====&lt;br /&gt;
{{Content:MirLua/Example|code=local hIcon = icolib.AddIcon(&amp;#039;iconUniqueName&amp;#039;, &amp;#039;My super icon&amp;#039;)}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== GetIcon ===&lt;br /&gt;
Returns icon handle.&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/parameters}} ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|MirLua/Modules/param_name}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|MirLua/Modules/required_param}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|Content/TableHeaders/type}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|Content/TableHeaders/description}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;MirLuaParametersTable-parameter&amp;quot; | name&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | {{Ls|YesNo/yes}}&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;&lt;br /&gt;
| Unique icon name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/result}} ====&lt;br /&gt;
{{nbsp|5}}{{Ls|MirLua/Modules/type}} &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{nbsp|5}}Returns icon handle if icon was found, otherwise &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/example}} ====&lt;br /&gt;
{{Content:MirLua/Example|code=&lt;br /&gt;
if icolib.GetIcon(&amp;#039;iconUniqueName&amp;#039;) then&lt;br /&gt;
  print(&amp;#039;Icon iconUniqueName exists&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== GetIconHandle ===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== RemoveIcon ===&lt;br /&gt;
Removes an icon.&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/parameters}} ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|MirLua/Modules/param_name}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|MirLua/Modules/required_param}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|Content/TableHeaders/type}}&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; | {{Ls|Content/TableHeaders/description}}&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;MirLuaParametersTable-parameter&amp;quot; | name&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | {{Ls|YesNo/yes}}&lt;br /&gt;
| style=&amp;quot;text-align:center&amp;quot; | &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt;&lt;br /&gt;
| Unique icon name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== {{Ls|MirLua/Modules/example}} ====&lt;br /&gt;
{{Content:MirLua/Example|code=icolib.RemoveIcon(&amp;#039;iconUniqueName&amp;#039;)}}&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>