<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ardenfall.com:443/index.php?action=history&amp;feed=atom&amp;title=Creating_UI</id>
	<title>Creating UI - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ardenfall.com:443/index.php?action=history&amp;feed=atom&amp;title=Creating_UI"/>
	<link rel="alternate" type="text/html" href="https://wiki.ardenfall.com:443/index.php?title=Creating_UI&amp;action=history"/>
	<updated>2026-08-18T07:11:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.ardenfall.com:443/index.php?title=Creating_UI&amp;diff=62&amp;oldid=prev</id>
		<title>Joshcamas: Created page with &quot;Creating new UI elements is for now, quite simple. More complex UI features will be coming later.  == Event Message == Event Message is text that appears on the top left of the screen. Can appear at any time in gameplay and in most menus. Messages will stack, and only a handful will appear at a time.  === ShowMessage === Displays the message&lt;syntaxhighlight lang=&quot;c#&quot;&gt;//Shows a simple text message. Will play a sound, and will stack. EventMessageInfoUI.ShowMessage(string m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ardenfall.com:443/index.php?title=Creating_UI&amp;diff=62&amp;oldid=prev"/>
		<updated>2026-07-30T01:35:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Creating new UI elements is for now, quite simple. More complex UI features will be coming later.  == Event Message == Event Message is text that appears on the top left of the screen. Can appear at any time in gameplay and in most menus. Messages will stack, and only a handful will appear at a time.  === ShowMessage === Displays the message&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;//Shows a simple text message. Will play a sound, and will stack. EventMessageInfoUI.ShowMessage(string m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Creating new UI elements is for now, quite simple. More complex UI features will be coming later.&lt;br /&gt;
&lt;br /&gt;
== Event Message ==&lt;br /&gt;
Event Message is text that appears on the top left of the screen. Can appear at any time in gameplay and in most menus. Messages will stack, and only a handful will appear at a time.&lt;br /&gt;
&lt;br /&gt;
=== ShowMessage ===&lt;br /&gt;
Displays the message&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;//Shows a simple text message. Will play a sound, and will stack.&lt;br /&gt;
EventMessageInfoUI.ShowMessage(string message);&lt;br /&gt;
&lt;br /&gt;
//Shows a message with the more complex EventMessageUIMessageItem &lt;br /&gt;
EventMessageInfoUI.ShowMessage(EventMessageUIMessageItem message);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Event Message UI Message Item ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
EventMessageUIMessageItem:&lt;br /&gt;
    string text               // The text message &lt;br /&gt;
    bool allowStacking = true // Whether duplicate messages will stack &lt;br /&gt;
    bool playSound = true     // Whether the message will display a sound when it appears&lt;br /&gt;
    bool skipIfVisible        // Whether to not display the message entirely if a duplicate one is visible&lt;br /&gt;
    int stackCount = 1        // How many &amp;#039;stacks&amp;#039; this message counts as (This is uncommonly used)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Alert Message UI ==&lt;br /&gt;
An alert message is a popup that pauses the game, and can appear at any time in gameplay or in any menu.&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;Ok&amp;#039; Alert ===&lt;br /&gt;
Displays an alert with a title (optional), text, and an ok button. You can hook into the button event. Supports AlertMessageSettings.&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
AlertMessageUI.OpenAlertMessage(string title, string message, Action onOk = null, string customOkLabel = null, AlertMessageSettings settings = new AlertMessageSettings())&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cancelable Alert ===&lt;br /&gt;
Displays an alert with a title (optional), text, and a ok + cancel button. You can hook into both button events. Supports AlertMessageSettings.&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
AlertMessageUI.OpenCancelableAlertMessage(string title, string message, Action onOk, Action onCancel = null, string customOkLabel = null, string customCancelLabel = null, AlertMessageSettings settings = new AlertMessageSettings())&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== No Buttons Alert ===&lt;br /&gt;
An alert with a title (optional), and text. No buttons. Supports AlertMessageSettings. Meant to be paired with Alert objects.&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
AlertMessageUI.OpenNoButtonsAlertMessage(string title, string message, AlertMessageSettings settings = new AlertMessageSettings())&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Alert Message Settings ===&lt;br /&gt;
A few settings to modify an alert. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;onTopOfFader:&amp;lt;/u&amp;gt; Makes the alert message appear on top of the fading screen. Useful to display narration popups.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;objects:&amp;lt;/u&amp;gt; Allows you to register Alert Objects&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
AlertMessageSettings:&lt;br /&gt;
     bool onTopOfFader&lt;br /&gt;
     List&amp;lt;AlertMessageObject&amp;gt; objects&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other Methods ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
//Closes the current alert if there is one&lt;br /&gt;
void AlertMessageUI.CloseCurrentAlert();&lt;br /&gt;
&lt;br /&gt;
//Returns whether an alert message is open&lt;br /&gt;
bool AlertMessageUI.IsOpen();&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Alert Objects ===&lt;br /&gt;
Add additional buttons, toggles, sliders, text input, dropdowns, and more.&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
AlertMessageSliderObject:&lt;br /&gt;
        string title&lt;br /&gt;
        float min&lt;br /&gt;
        float max&lt;br /&gt;
        float value&lt;br /&gt;
        bool isInt&lt;br /&gt;
&lt;br /&gt;
AlertMessageToggleObject&lt;br /&gt;
        string title&lt;br /&gt;
        bool value&lt;br /&gt;
&lt;br /&gt;
AlertMessageTextInputObject&lt;br /&gt;
        string title&lt;br /&gt;
        string value&lt;br /&gt;
        int characterLimit&lt;br /&gt;
        Func&amp;lt;string, bool&amp;gt; Validate&lt;br /&gt;
&lt;br /&gt;
AlertMessageDropdownObject&lt;br /&gt;
        string title&lt;br /&gt;
        int value&lt;br /&gt;
        List&amp;lt;TMP_Dropdown.OptionData&amp;gt; options&lt;br /&gt;
&lt;br /&gt;
AlertMessageButtonObject&lt;br /&gt;
        string title&lt;br /&gt;
        string label&lt;br /&gt;
        Action onClick&lt;br /&gt;
&lt;br /&gt;
AlertMessageImageObject&lt;br /&gt;
        string title&lt;br /&gt;
        Sprite texture&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joshcamas</name></author>
	</entry>
</feed>