Simple Daste and 24h Clock MOD

mindwarper

Chieftain
Joined
Sep 30, 2010
Messages
11
Hello all,

This is my first attempt of making a MOD, without the need of using the MODTools :)
Don't need it yet, maybe later...

What I have made is in the top panel to show the current date together with a 24h clock...

This causes the panel to show the date and time in this example format:

Sun 03 October 2010 - 16:04:34

Just place this MOD in the MODS dir in your documents folder and use the in-game MOD browser and install method to install this one...

Code in LUA file that is used:
Code:
-- SimpleClock.lua
-- Authors: Firaxis
-- This mod sample displays how to create a basic InGameUIAddin.
----------------------------------------------------------------  
ContextPtr:SetUpdate(function()
	local t = os.date("%a %d %b %Y - %X");
	Controls.ClockLabel:SetString(t);
end);

Check also this URL for reference :)
http://www.mushclient.com/forum/bbshowpost.php?bbsubject_id=7836
 

Attachments

Back
Top Bottom