Learning to make SKyUI widgets - Basic arrow counter?

Post » Fri Dec 27, 2013 8:48 am

I'm currently in the process of learning how to make my own widgets. I've been to http://www.gamesas.com/topic/1476439-documentation-for-skse-ui-functions/?hl=%2Bwidget#entry23080979, to get the necessities installed and setup. I've read http://www.gamesas.com/topic/1474320-loding-a-widget-within-skyui-hud-framework/?hl=%2Bwidget#entry23031473 and http://www.gamesas.com/topic/1464265-learning-ui-modding-need-a-few-pointers/?hl=%2Bwidget#entry22787120. I'm pretty amazed by Lunchboxs Follower wheel, anyone know to happen when it gets released?

However, wdiget coding is uncharted land for me, and I sure need a little poke to get used to it. I had hopes that @Schlangster could give me the basic coding for how to make a "show arrows in your inventory in HUD" widget, .swf and .psc wise. I just need a basic number nothing else, maybe a little arrow icon underneath. Could you help me?

User avatar
leigh stewart
 
Posts: 3415
Joined: Mon Oct 23, 2006 8:59 am

Post » Fri Dec 27, 2013 1:56 am

There you go:
https://github.com/schlangster/skyui/tree/master/misc/ArrowCount

Completely(!) untested though, might not even compile.
To add it, create a quest, attach the widget script to it, add the reload player alias like for an MCM menu.
Then create some controller quest script that updates theWidget.Count and theWidget.Visible. Alternatively, the widget itself can do that.

Credits for the icon go to psychosteve.
User avatar
Leilene Nessel
 
Posts: 3428
Joined: Sun Apr 15, 2007 2:11 am

Post » Fri Dec 27, 2013 1:53 am

Will something like this be added in future updates of SkyUI? The same for Inventory Weight, real time?

I just ask before I do all the work and you guys plan something like it.

Edit: The .psc is html code, how would it work?

User avatar
Gavin boyce
 
Posts: 3436
Joined: Sat Jul 28, 2007 11:19 pm

Post » Fri Dec 27, 2013 8:00 am

No, adding something like this is not planned.
User avatar
KIng James
 
Posts: 3499
Joined: Wed Sep 26, 2007 2:54 pm

Post » Fri Dec 27, 2013 7:38 am

Got it working, except for the update part. Would it be easier to set the update inside the widget? All I got as example is Cheskos Frostfall Wet Meter Update Script, and it's way over my head.

Btw. must the widget already show on the HUD without the update script? Because it doesn't.

User avatar
gemma
 
Posts: 3441
Joined: Tue Jul 25, 2006 7:10 am


Return to V - Skyrim