Soldak Entertainment Forums

Soldak Entertainment Forums (http://www.soldak.com/forums/index.php)
-   Kivi's Underworld modding (http://www.soldak.com/forums/forumdisplay.php?f=17)
-   -   ingame stats as numbers (http://www.soldak.com/forums/showthread.php?t=1372)

Grave 02-01-2009 11:29 AM

ingame stats as numbers
 
2 Attachment(s)
is there a way to show numerical values along with stat bars above ingame models (player/monsters) as seen in second attached image?
i had no problems adding numbers to UI health/power statbars as seen in image, but i couldn't find anything related to actual ingame statbars, is it hardcoded? i've been using this UI enhancement in Depths Of Peril too, and its quite nice and helpful to see the actual values esp. with higher level monsters

Shadow 02-02-2009 10:20 AM

No, I don't think you can do that. There's no generic way to add stuff above character/monsters heads like the menu files.

Grave 02-02-2009 03:10 PM

1 Attachment(s)
thanks for the reply.
for people interested in these changes to UI:



here's the code for those who want to change it by hand:
(add at the end of corresponding UI file)

code for UI/player.mnu

Code:

// ============================ changes begin here =============================
// 1.0        -added: health value displayed as numbers
//        -added: power value displayed as numbers
// =============================================================================

// health value displayed as numbers

StatValue
{
        position 14.0 26.5
        size 100.0 10.0
        entityType PlayerClient
        stat Other Health MaxHealth
        textAlignment Center
        color "1.0 1.0 1.0"
        useTextBackdrop 1
        font smallDefault
        divider /
        draworder 2
        showHighlightInfo 0
}

// power value displayed as numbers

StatValue
{
        position 14.0 38.0
        size 100.0 10.0
        entityType PlayerClient
        stat Normal Power MaxPower
        textAlignment Center
        color "1.0 1.0 1.0"
        useTextBackdrop 1
        font smallDefault
        divider /
        draworder 2
        showHighlightInfo 0
}

// ============================= changes end here ==============================

code for UI/selectedEntity.mnu

Code:

// ============================ changes begin here =============================
// 1.0        -added: health value displayed as numbers
//        -added: power value displayed as numbers
// =============================================================================

// health value displayed as numbers

StatValue
{
        position 151.0 23.0
        size 98.5 10.0
        entityType Selected
        stat Other Health MaxHealth
        textAlignment Center
        color "1.0 1.0 1.0"
        useTextBackdrop 1
        font smallDefault
        divider /
        draworder 2
        showCondition EntityHasHealth
        hideCondition EntityDead
        showHighlightInfo 0
}

// power value displayed as numbers

StatValue
{
        position 151.0 33.0
        size 98.0 10.0
        entityType Selected
        stat Other Power MaxPower
        textAlignment Center
        color "1.0 1.0 1.0"
        useTextBackdrop 1
        font smallDefault
        divider /
        draworder 2
        showCondition EntityHasPower
        hideCondition EntityDead
        showHighlightInfo 0
}

// ============================= changes end here ==============================

and here's attached zip file for people who prefer it that way


All times are GMT -4. The time now is 05:53 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.