Page 3 of 4
Re: GUI Party Dialogue Journal
Posted: Sun Jun 09, 2013 12:02 pm
by Komag
Very nice! You could even add a bit of code to say Hour, Minute, Second, if the number is 1.
Re: GUI Party Dialogue Journal
Posted: Sun Jun 09, 2013 3:41 pm
by msyblade
Very nice indeed! Great Idea, and thank you for sharing it with us. I'm going to package up the new release with a little more functionality today. Xanathar has added the ability drag the scrollbar, and a Wordwrap feature for long lines. You will just use addItemWordWrap instead of addItem, when you want to use it. Anyway, I will add Ryeath's time conversion table in also, (welcome to the credits!) the big numbers are a bit of a turnoff, so thank you again

Re: GUI Party Dialogue Journal
Posted: Sun Jun 09, 2013 4:31 pm
by Ryeath_Greystalk
msyblade wrote:Very nice indeed! Great Idea, and thank you for sharing it with us. I'm going to package up the new release with a little more functionality today. Xanathar has added the ability drag the scrollbar, and a Wordwrap feature for long lines. You will just use addItemWordWrap instead of addItem, when you want to use it. Anyway, I will add Ryeath's time conversion table in also, (welcome to the credits!) the big numbers are a bit of a turnoff, so thank you again

The working scroll bar would really be nice. I move using the arrow keys (have a hard time with wasd) and the only way I could move the highlighted line up and down was to stand against a wall and keep walking into it.
I'm glad you liked the time idea.
Re: GUI Party Dialogue Journal
Posted: Sun Jun 09, 2013 4:38 pm
by Ryeath_Greystalk
Komag wrote:Very nice! You could even add a bit of code to say Hour, Minute, Second, if the number is 1.
That's a good idea.
Honestly after 2 hours of reworking the formula and then scraping them because the numbers weren't right, I was just happy to see the right numbers show up correct.
Probably should have paid more attention in math class.
Re: GUI Party Dialogue Journal
Posted: Mon Jun 10, 2013 6:22 am
by msyblade
Updated version of the Journal is up:
http://grimrock.nexusmods.com/mods/269/?
Timestamp conversion works like a charm, Ryeath!
Other updates include: (Thanx Xanathar)
-Draggable scroll bar.
-WordWrap.
-Optimized positioning for some resolutions.
Re: GUI Party Dialogue Journal
Posted: Mon Jun 10, 2013 11:56 am
by Xanathar
Thanx Xanathar
Thanks to you for releasing this!

Re: GUI Party Dialogue Journal
Posted: Wed Jun 12, 2013 6:31 am
by Ryeath_Greystalk
Downloaded the update.
The working scroll bar is a great improvement. Thanks.
Re: GUI Party Dialogue Journal
Posted: Sun Dec 08, 2013 1:33 pm
by LocalFire
I'm having a hard time getting this to work, I can open it but I can't add text. It works with just the hudPrint but once I add the mdConversationList.addItem it gives the error "attempt to call field addItem a nil value" I've Also tried copying the example from the demo dungeon and it works fine (for adding the text from the e-book) but anything else gives me this error.This is what I'm using
Code: Select all
local aname = ""
for i=1,4 do
aname = party:getChampion(i):getName()
if aname == ("Evante Morecari") then
hudPrint ("Voice in the air:I am weak, so I have held back the others could not be saved")
hudPrint ("Voice in the air:The other I could not save but you are strong enough to have a chance")
hudPrint ("Voice in the air: Strong enough to do what I could not.....")
mdConversationList.addItem("You hear a faint voice on the still air of the dungeon and strain your ears to hear it.")
end
I've checked the names on all the SE's to make sure they are right, I'm useless with scripting so any help would be great
And I went into the init.lua file to make sure its at the end of the file and I'm not using any other onDraw hooks or anything else just this.
Re: GUI Party Dialogue Journal
Posted: Sun Dec 08, 2013 5:11 pm
by msyblade
It does sound like there is a small typo somewhere causing the issue, if the demo is working for you. I am leaving for work right now so i cant investigate until later, My first thought would be a capitalization of certain characters in the "camelHump" format. (Meaning, how eachWordStartsWithACapInsteadOfUsingUnderscores.) you might compare your mdConverstaionList SE to the demo SE and see if you can find any anomalies bewteen them (my guess is that your SE may be missing one of the camelHumps, or missing a character). Let me know if you cannot find any difference between the two,and post a screenshot of your mdConverstaionList SE open in the editor (showing on the bottom right) So I can check the naming and first few lines for you. I don't think this next suggestion will help, but you can also try just the "mdConversationList.addItem" in a function, without the if statement preceeding it. (Remove the "If name=" and "hudPrint" lines to see if that is causing a conflict, however I doubt it.)
Hope this helps!
Re: GUI Party Dialogue Journal
Posted: Sun Dec 08, 2013 11:33 pm
by LocalFire
Actually that second suggestion worked, I played around a bit and it seems I'll just have to put all the journal sections into seperate SE's as it seems that even having a second function in the SE causes it not to work