CowTip_LuaText

4 - lines disappearing

When right cell returns an empty string the whole line (both left and right cell) is not shown.


1st case: the ["rights"][1] function returns an empty string:
return (unit == "player") and ((UnitIsAFK(unit) and "AFK") or (UnitIsDND(unit) and "DND")) or ""

2nd case: the ["rights"][1] function returns -:
return (unit == "player") and ((UnitIsAFK(unit) and "AFK") or (UnitIsDND(unit) and "DND")) or "-"


I tried to put a blank instead of minus character but it behaved the same way like an empty string.

  • WoWScrnShot_101809_205125.jpg
  • WoWScrnShot_101809_205304.jpg
User When Change
TAP3AH Sun, 18 Oct 2009 19:40:18 Changed description:
- When right cell returns an empty string the whole line (both left and right cell) is not shown. The first screenshots shows when the function returns an empty string and the second one returns <code>-</code> instead.
- The 1st case:
+ When right cell returns an empty string the whole line (both left and right cell) is not shown.
+ <hr>
+ <b>1st case:</b> the <code>["rights"][1]</code> function returns an empty string:
+ <img src="http://static.wowace.com/content/attachments/1/601/WoWScrnShot_101809_205304.jpg">
  <pre>return (unit == "player") and ((UnitIsAFK(unit) and "AFK") or (UnitIsDND(unit) and "DND")) or ""</pre>
- The 2nd case:
+ <hr>
+ <b>2nd case:</b> the <code>["rights"][1]</code> function returns <code>-</code>:
+ <img src="http://static.wowace.com/content/attachments/1/600/WoWScrnShot_101809_205125.jpg">
  <pre>return (unit == "player") and ((UnitIsAFK(unit) and "AFK") or (UnitIsDND(unit) and "DND")) or "-"</pre>
+ <hr>
  I tried to put a blank instead of minus character but it behaved the same way like an empty string.
TAP3AH Sun, 18 Oct 2009 19:24:57

Added attachment WoWScrnShot_101809_205304.jpg

TAP3AH Sun, 18 Oct 2009 19:24:44

Added attachment WoWScrnShot_101809_205125.jpg

TAP3AH Sun, 18 Oct 2009 19:23:59 Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated on
18 Oct 2009
Reported on
18 Oct 2009
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.

Reported by

Possible assignees