URL:
  <http://gna.org/bugs/?22822>

                 Summary: create a lua method to query who is the viewing
player
                 Project: Battle for Wesnoth
            Submitted by: involution
            Submitted on: Sat 18 Oct 2014 04:00:34 AM UTC
                Category: Feature Request
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13.0-dev
        Operating System: N/A

    _______________________________________________________

Details:

When creating theme items, it's often important to be able to know who the
viewing player is. For instance if you look in reports.cpp, most of the
default ui items make a call to the display object to determine, whose gold
they are supposed to be counting etc.

There doesn't appear to be any way to actually do this in lua though. The
closest thing I can see is something like, at least determining if the viewing
player is also the player whose turn it is, by scrutinizing the report text
generated for the countdown timer (seeing what color that text is, in
particular). This is so painful that it remains purely a hypothetical.

For some reason I added this as an "easy coding task" a long time ago without
ever making a formal feature request.

This really would make the lua "wesnoth.theme_items" feature a hell of a lot
more useful.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22822>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to