Difference between revisions of "ImGui.Core:showAboutWindow"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Creates an ImGui About window, displaying Dear ImGui version, credits and build/system information.
 
Creates an ImGui About window, displaying Dear ImGui version, credits and build/system information.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
ImGui:showAboutWindow(bool)
 
ImGui:showAboutWindow(bool)
 
</source>
 
</source>
Line 13: Line 13:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
MyClass = Core.class(Sprite)
 
MyClass = Core.class(Sprite)
  

Revision as of 15:28, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Creates an ImGui About window, displaying Dear ImGui version, credits and build/system information. <syntaxhighlight lang="lua"> ImGui:showAboutWindow(bool) </source>

Parameters

bool: (boolean) whether or not to show the window

Example

<syntaxhighlight lang="lua"> MyClass = Core.class(Sprite)

function MyClass:init() self.imgui = ImGui.new() self:addChild(self.imgui) -- LISTENERS self:addEventListener("enterBegin", self.onTransitionInBegin, self) end

-- LOOP function MyClass:onEnterFrame(e) self.imgui:newFrame(e) self.imgui:showAboutWindow() self.imgui:endFrame() self.imgui:render() end

-- EVENT LISTENERS function MyClass:onTransitionInBegin() self:addEventListener(Event.ENTER_FRAME, self.onEnterFrame, self) end </source>