Log in

View Full Version : Add Log Entry - Captains Log


oblio
11-11-05, 10:57 AM
Has anyone had any success enabling the "Add Log Entry" menu items, located on the Captain's Log screen? To be more specific, the [G35 I*] Menu items, located in the menu_1024_768.ini file; related to the "AddLogEntryGrp". Example of what I'm talking about:

[G35 I2]
Name=AddLogEntryGrp
Type=1026;Menu group
ItemID=0x35010000
ParentID=0x35000000
Pos=157,643,650,639
Color=0xFFFFFFFF

[G35 I5]
Name=LogText
Type=1035;Edit box
ItemID=0x35010002
ParentID=0x35010000
Pos=8,-9,631,581
Color=0xFFFFFF96
Materials=4
Display=4;All directions
Mat 0=data/menu/gui/layout/sel.tga
Mat 1=data/menu/gui/layout/sel.tga
Mat 2=data/menu/gui/layout/sel.tga
Mat 3=data/menu/gui/layout/sel.tga
MatFlags=0x1
TexFmt=0x9
Font=5
Text=0
TextFlags=0x10
StatesColors=0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF
TextMaxLen=1014

Rubini
11-11-05, 02:45 PM
Interesting... :hmm:

But perhaps is another unfinished feature by the devs...who knows... :hmm:


Rubini.

Marhkimov
11-11-05, 02:51 PM
This looks interesting.

I can't guarantee anything, but I'll give it a look. :yep:

oblio
11-19-05, 08:51 PM
just read a post in general forum about this, so here's a bump...

iambecomelife
11-19-05, 09:36 PM
bump

ICBM
11-20-05, 12:01 PM
Interesting indeed, it would add much to the immersiveness if we could write our own log entries.

Observer
11-20-05, 10:06 PM
I took a look at this. The code is all in place in the menu configuration, and a few simple changes can make the "Add new log entry" text show, but there doesn't appear to be an event handler in the SH3 code to execute the text entry box. It's a real shame because the Captain's Log format supports adding the extra entries. The trick seems to be getting an event handler which reads the date/time and opens the textbox defined by this entry in the menu_1024_768.ini:

[G35 I5]
Name=LogText
Type=1035;Edit box
ItemID=0x35010002
ParentID=0x35010000
Pos=8,-9,631,581
Color=0xFFFFFF96
Materials=4
Display=4;All directions
Mat 0=data/menu/gui/layout/sel.tga
Mat 1=data/menu/gui/layout/sel.tga
Mat 2=data/menu/gui/layout/sel.tga
Mat 3=data/menu/gui/layout/sel.tga
MatFlags=0x1
TexFmt=0x9
Font=5
Text=0
TextFlags=0x10
StatesColors=0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF
TextMaxLen=1014

It's possible to do this externally, but it still would require an alt-tab to work I think. I haven't looked but I think this event handler is probably in one of the protected files.