Interface changes for UI mod authors
Based on SkyrimUI SDK by Mardoxx: https://github.com/Mardoxx/skyrimui
Flash CS4/6:
statsmenu.swf
- Duplicate Shape 25 and Sprite 26
- Change the color of duplicated Shape 25 then link it to duplicate of Sprite 26
- Copy the first frame (labeled as "Full") of ShortBar then paste it after last (200th)
- Right click on 201th frame and "Swap symbol" to new Sprite
- Give the 201th frame label "Cap"
trainingmenu.swf
- Duplicate Shape XX and Sprite XX
- Change the color of duplicated Shape XX then link it to duplicate of Sprite XX
- Copy the first frame (labeled as "Full") of ShortBar then paste it after last (200th)
- Right click on 201th frame and "Swap symbol" to new Sprite
- Give the 201th frame label "Cap"
ActionScript:
Meter.as
var Capped: Number; // new property
function Meter(aMovieClip: MovieClip)
{
/* existing code */
this.meterMovieClip.gotoAndStop("Cap"); // new line
this.Capped = meterMovieClip._currentframe; // new line
}
function SetCapped(): Void // new function
{
this.meterMovieClip.gotoAndStop(this.Capped); // if you can compile from Flash
this.meterMovieClip.gotoAndStop(201); // if you are editing in JPEXS
}
function SetPercent(aPercent)
{
if(aPercent < 0) {
// Set capped and keep both percents same negative value to keep "Update" function from uncapping it
this.SetCapped();
this.CurrentPercent = -1;
this.TargetPercent = -1;
} else {
// Original logic
this.CurrentPercent = Math.min(100,Math.max(aPercent,0));
this.TargetPercent = this.CurrentPercent;
var _loc3_ = Math.floor(Shared.GlobalFunc.Lerp(this.Empty,this.Full,0,100,this.CurrentPercent));
this.meterMovieClip.gotoAndStop(_loc3_);
}
}
function SetTargetPercent(aPercent)
{
if(aPercent < 0) {
// Set Capped and make TargetPercent negative
this.SetCapped();
this.TargetPercent = -1;
} else {
// Original Logic
this.TargetPercent = Math.min(100,Math.max(aPercent,0));
}
}
AnimatedSkillText.as
Remove any changes in this file that was made for Experience mod as the legendary system will work like vanilla now
0 comments