• 0

    posted a message on Grid2 - What it is, and what it's not
    Patch is perhaps this tuesday (10/12), I just logged on PTR and it's not working alas. Hopefully it will get fixed in time!
    Posted in: Grid & Grid2
  • 0

    posted a message on Enlarging UI Icons
    I am authoring Broker_Wallet and a new simple PVP display for LDB. When I pull the icons for items from the Blizzard UI, they are really tiny on the broker bars. Is there any good way to make these bigger by default?
    Posted in: Lua Code Discussion
  • 0

    posted a message on New and broken stuff with Cataclysm
    Thanks.
    Posted in: Lua Code Discussion
  • 0

    posted a message on New and broken stuff with Cataclysm
    Quote from LaoTseu
    For those interested by the new Justice Points

    localized_label, amount, icon_file_name = GetCurrencyInfo(395)


    In English, localized_label == "Justice Points". icon_file_name == "pvecurrency-justice" (doesn't have the path). I use this to insert the justice point icon in my strings:

    format("%s\124TInterface\\Icons\\pvecurrency-justice:0:0:2:0:64:64\124t",amount)


    How were you able to find the values for GetCurrencyInfo() ? Hunt and peck method? Or is there a master list somewhere?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Main-Alt Addon
    Quote from talryn1
    Thaoky, your addon is very cool but you're doing way more than we ever wanted. Sylvanaar's Prat and the addon I coded are really just a way to note the alts of someone. Since we often don't have real names for people, the idea of a "main" makes sense. It's only goal is to help you tie characters together.


    I guessed so. I know the approach I used differed from the classic main/alt terminology, and from what I read it's not what you need. Typically, the concept works fine in a small guild like mine where everyone knows everyone.

    Quote from talryn1
    I did see the Data Store code. Interesting idea. It may be overkill for what we're trying to do though. It did make me wonder if you wanted to use that approach for lots of addons then how do you organize the data to work as many addons as possible. Our addons wouldn't need the level of detail that Altoholic provides or even what the character data store provides.


    If you're trying to keep things simple, then yes indeed, DataStore is a bit overkill. It's fine as it is now because it writes itself in a bigger picture (main module as a service provider to other modules and to client addons), but not if the initial prerequisite is not met (ie: not setting a specific char as the main). That said, if that had not been the case, only the main DS module would have been necessary for you.

    Quote from talryn1
    What I'm seeing so far is that their doesn't seem to be a community agreed upon approach to shared data. I can see the desire to keep addons autonomous but at the same time it complicates some problems such as this one.


    I'd say yes and no. It reveals its potential when multiple client addons start using it. I won a lot of time when coding my second addon thanks to all the stuff that DS was providing. I didn't know of any other addon designed with shared data in mind when I started DS, so I tried to do it (also a fun way to play with Lua and to see how far I could go), and I'd be ok to adjust it if the community wanted to go that way.. I'd welcome more hands on the project too :)

    Anyway, that was just my 2 cents :p
    Posted in: Addon Ideas
  • 0

    posted a message on Main-Alt Addon
    Hey there,

    Some information on how Altoholic works might help, as well as some insight on how I took some decisions while coding these features.

    The first thing you should know is that Altoholic itself no longer stores information, most of the data is handled by the DataStore series, which acts as an independant layer. So if you want to look at the code, just read DataStore\DataStore.lua, the whole thing about main-alts relationship is in there.

    When I started coding the guild features present in Altoholic, and more specifically the guild members/skills panes, where you can expand members to see their alts, I also considered the idea of tagging a character as a main, but I never did it that way because I felt it could confuse the user, and I tried looking for a way to automate the process for him.

    What I came up with was to slightly alter the notion of main/alt, by considering that the "main" is the character currently being played (even if it's a low level alt), and that the "alts" are all his other characters in the same guild.

    So question 1) Does your addon need to stick to the real definition of main/alt ? Or can you live with an approach like mine ?

    Question 2) Do you really need to actually store the main/alt relationship ?
    If you look at DataStore, I don't save this relationship, I simply check at logon which alts are on the same realm+faction+guild. If you do not need to know the main/alts relationships from guilds other than the one you're currently playing with, then you won't need more.

    Check the function OnPlayerGuildUpdate() in DataStore.lua, you'll see how it works.

    I can't tell if my approach would be ok for what you intend to do, but what I can say is that in more than a year since I released these features, no one has ever complained about the approach, quite the opposite in fact, users find this natural (at least that's what my guildies say :p).

    Hope this helps, don't hesitate to ask if you want clarifications about DataStore.
    Posted in: Addon Ideas
  • 0

    posted a message on New and broken stuff with Cataclysm
    GetItemInfo() is not working to pull currency counts. It is returning a 0 value.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Broker_PVP menu doesn't work
    ya that pvp broker shows the tooltip like the blizzard pvp icon but it does not seem to show the menu when you right click on it? thanks
    Posted in: AddOn HELP!
  • 0

    posted a message on Grid
    I'm sorry if I'm asking something obvious, but I can't seem to see anymore the 'k' in the health deficit.

    Is there a setting to show this?
    Thank you.
    Posted in: Grid & Grid2
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Quote from Eldavido
    @Lolzen Really like that font, could you tell me what it it please ? Also, what is that damage meter you run, I'm not sure if it's Skada, but customised ... Also also, what textures are you using for your bars etc ?? It's the first time in a while I've seen a UI, other than my own, that I really like, so sorry for the wall of questions :P Thanks.


    Hehe, no problem^^

    Here's the font.
    The dmg meter is a little project of mine, the texture was called.. uhm it's the third (left) texture in the "StatusBar-Section" here.
    Posted in: General Chat
  • 0

    posted a message on UI Screenshots - Show us what you use!


    Yes, i always have the Objectives opened :P

    And as you can see, i haven't finished my raid-layout for now, but as i don't raid regulary it doesn't bother me much.
    Posted in: General Chat
  • 0

    posted a message on DogTag Questions Go Here
    Recently my HDD died and I lost about two years worth of DogTags... among them and the only one I have no idea how I managed to get working was this.

    When not casting show name when casting show spell name. And also the same but showing cast times or health/mana.

    Any ideas?
    Posted in: Unit Frames
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Quote from Graven
    If you don't mind, could you tell me what minimap and nameplates you are using?


    i think the nameplates are tidy plates : neon and the minimap is self made
    that's correct, for the minimap i used the gloss texture from dMiniMap2 ;)
    Posted in: General Chat
  • 0

    posted a message on UI Screenshots - Show us what you use!


    Current WiP.
    Posted in: General Chat
  • 0

    posted a message on PitBull 4.0
    how can i trim a text value am returning if its over 15 characters?

    return Name(unit)

    thanks

    EDIT: i found out thanks anyway : return "%.15s",Name(unit)
    Posted in: Unit Frames
  • To post a comment, please or register a new account.