New GUI scripting concepts and foundation

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: New GUI scripting concepts and foundation

Post by Neikun »

Ahh, thanks Petri. I didn't realize.

To others: http://www.grimrock.net/modding/asset-d ... reference/ ctrl+f: gui
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: New GUI scripting concepts and foundation

Post by Xanathar »

Code: Select all

The font rendering system is the same on all platforms and does not do kerning.
Thanks Petri!
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: New GUI scripting concepts and foundation

Post by JKos »

I pushed a new version which includes a spell_book script entity for development purposes, I hope that spell book script is complex enough to bring out the possible flaws on grimwidgets.
I also wanted to do/show something concrete and visual to keep the interest up.

Here is the screenshot: https://docs.google.com/file/d/0B7cR7sc ... JKZWc/edit
(it's unpolished yet)
And anyone can test it by downloading the grimwidgets from github.

Spell book is shown automatically when mage skills tab is opened. Clicking the spell name does't work correctly on preview window (the button location is bit off to the right), because of this bug: viewtopic.php?f=14&t=4530&start=30#p48751
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
User avatar
thomson
Posts: 337
Joined: Thu Sep 13, 2012 9:55 pm
Location: R'lyeh
Contact:

Re: New GUI scripting concepts and foundation

Post by thomson »

Awesome! It works for me, but I've found a bug. It's easy to reproduce. Open mage inventory, then go to skills. Spellbook shows up. Click on a spell. Runes for that spell will show up. Now right click on non-mage champion. The book will disappear, but the runes will still be shown.

I'm looking at the code. Let's see if I'll be able to fix that.
[MOD] Eye of the Beholder: Waterdeep sewers forum sources; Grimtools (LoG1 -> LoG2 converter) sources
User avatar
thomson
Posts: 337
Joined: Thu Sep 13, 2012 9:55 pm
Location: R'lyeh
Contact:

Re: New GUI scripting concepts and foundation

Post by thomson »

Ok, that wasn't that hard. :) Bug fixed.

Hmmm, perhaps it's time for me to create something that uses the framework, too. I'll work on creating a compass. Something like EOB1 - visible as part of GUI, rather than on hand item.
[MOD] Eye of the Beholder: Waterdeep sewers forum sources; Grimtools (LoG1 -> LoG2 converter) sources
User avatar
thomson
Posts: 337
Joined: Thu Sep 13, 2012 9:55 pm
Location: R'lyeh
Contact:

Re: New GUI scripting concepts and foundation

Post by thomson »

Compass has been implemented. It is possible to enable it in one of 3 modes: always visible, toggled with a 'c' key or shown only when 'c' is pressed. The code to implement this is pretty minimal.

I'm a software engineer, not an artist. I just took a photo from a book published in 1607 called The Seaman's Secrets. All possible copyrights expired literally ages ago, and it's public domain now :)
If someone manages to find a better compass image, please let us know.
Screenshot: compass

The code is very simple. See script located at 21,13 (a bit over 10 lines of code with many comments).
[MOD] Eye of the Beholder: Waterdeep sewers forum sources; Grimtools (LoG1 -> LoG2 converter) sources
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: New GUI scripting concepts and foundation

Post by Komag »

while I may be amenable to the concept of an on-screen compass, it would need to be pretty tiny and non-obtrusive for me to actually use it. but nice proof of concept, good work :)
Finished Dungeons - complete mods to play
User avatar
germanny
Posts: 530
Joined: Sat Apr 07, 2012 10:52 pm
Location: Kiel, Germany

Re: New GUI scripting concepts and foundation

Post by germanny »

That compass is classy! I will make graphics for it. If you want.
Dungeon Master Resource Pack worker and passionated Beer drinker
User avatar
germanny
Posts: 530
Joined: Sat Apr 07, 2012 10:52 pm
Location: Kiel, Germany

Re: New GUI scripting concepts and foundation

Post by germanny »

Here is one. Selfmade, the model exists.
Image
Dungeon Master Resource Pack worker and passionated Beer drinker
User avatar
Asteroth
Posts: 471
Joined: Wed Oct 24, 2012 10:41 am
Location: Eastern U.S.

Re: New GUI scripting concepts and foundation

Post by Asteroth »

germanny wrote:Here is one. Selfmade, the model exists.
You frighten me your modelling is so good germanny. We are blessed to have an actual 3d artist helping us. (Quick from whence do you get your dark powers?!)
I am the God of darkness and corruption.
viewtopic.php?f=14&t=4250
Post Reply