Changeset 32


Ignore:
Timestamp:
Mar 9, 2009, 4:05:31 AM (10 years ago)
Author:
drazed
Message:

new icons

Files:
9 added
3 edited
7 moved

Legend:

Unmodified
Added
Removed
  • lists/Ship.lua

    r28 r32  
    285285
    286286function targetless.Ship.standing(stand, faction)
    287     if(targetless.var.faction == "icon") then
     287    if(targetless.var.faction == "smile" or targetless.var.faction == "wheel") then
    288288        local standstr = factionfriendlyness(stand)
    289289        if standstr == "Kill on Sight" then
    290             standstr = "KOS.png"
     290            standstr = targetless.var.faction.."/KOS.png"
    291291        elseif standstr == "Hate" then
    292             standstr = "hate.png"
     292            standstr = targetless.var.faction.."/hate.png"
    293293        elseif standstr == "Dislike" then
    294             standstr = "dislike.png"
     294            standstr = targetless.var.faction.."/dislike.png"
    295295        elseif standstr == "Neutral" then
    296             standstr = "neutral.png"
     296            standstr = targetless.var.faction.."/neutral.png"
    297297        elseif standstr == "Respect" then
    298             standstr = "respect.png"
     298            standstr = targetless.var.faction.."/respect.png"
    299299        elseif standstr == "Admire" then
    300             standstr = "admire.png"
     300            standstr = targetless.var.faction.."/admire.png"
    301301        elseif standstr == "Pillar of Society" then
    302             standstr = "POS.png"
     302            standstr = targetless.var.faction.."/POS.png"
    303303        end
    304304        local iuplabel = iup.label {title = "", font = targetless.var.font}
  • ui/options_ui.lua

    r22 r32  
    1717
    1818targetless.ui.options.element.slist = iup.list { "distance", "health", "faction"; dropdown="YES" }
    19 targetless.ui.options.element.flist = iup.list { "icon", "bar"; dropdown="YES" }
     19targetless.ui.options.element.flist = iup.list { "smile","wheel","bar"; dropdown="YES" }
    2020targetless.ui.options.element.refreshtext = iup.text { value = "" .. targetless.var.refreshDelay/1000, size = "100x" }
    2121targetless.ui.options.element.maxlsize = iup.text { value = "" .. targetless.var.listmax, size = "100x" }
     
    307307    else targetless.ui.options.element.slist.value = 3 end
    308308
    309     if(targetless.var.faction == "icon") then
     309    if(targetless.var.faction ~= "bar") then
    310310        targetless.ui.options.element.flist.value = 1
    311311    else
  • var.lua

    r30 r32  
    130130-- icons
    131131targetless.var.IMAGE_DIR = "plugins/targetless/images/"
    132 targetless.var.images =
     132targetless.var.images = {}
     133targetless.var.images.smile =
    133134{
    134     iup.LoadImage("POS.png"),
    135     iup.LoadImage("admire.png"),
    136     iup.LoadImage("respect.png"),
    137     iup.LoadImage("neutral.png"),
    138     iup.LoadImage("dislike.png"),
    139     iup.LoadImage("hate.png"),
    140     iup.LoadImage("KOS.png"),
    141     iup.LoadImage("health.png"),
    142     iup.LoadImage("logo.png"),
     135    iup.LoadImage("smile/POS.png"),
     136    iup.LoadImage("smile/admire.png"),
     137    iup.LoadImage("smile/respect.png"),
     138    iup.LoadImage("smile/neutral.png"),
     139    iup.LoadImage("smile/dislike.png"),
     140    iup.LoadImage("smile/hate.png"),
     141    iup.LoadImage("smile/KOS.png"),
     142    iup.LoadImage("smile/health.png"),
     143    iup.LoadImage("smile/logo.png"),
    143144}
    144 
     145targetless.var.images.wheel =
     146{
     147    iup.LoadImage("wheel/POS.png"),
     148    iup.LoadImage("wheel/admire.png"),
     149    iup.LoadImage("wheel/respect.png"),
     150    iup.LoadImage("wheel/neutral.png"),
     151    iup.LoadImage("wheel/dislike.png"),
     152    iup.LoadImage("wheel/hate.png"),
     153    iup.LoadImage("wheel/KOS.png"),
     154    iup.LoadImage("wheel/health.png"),
     155    iup.LoadImage("wheel/logo.png"),
     156}
Note: See TracChangeset for help on using the changeset viewer.