LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: Hyphen-ated on March 13, 2015, 07:16:52 AM

Title: UI problem with shared zones
Post by: Hyphen-ated on March 13, 2015, 07:16:52 AM
Here's my plugininfo.txt

<plugin>
    <gamezone>
         <label>Hand</label>
         <visibletoowner>yes</visibletoowner>
         <visibletoothers>no</visibletoothers>
    </gamezone>
               
    <gamezone>
          <label>Vault</label>
          <visibletoowner>no</visibletoowner>
          <visibletoothers>no</visibletoothers>
    </gamezone>
   
    <gamezone>
          <label>Deck</label>
          <visibletoowner>no</visibletoowner>
          <visibletoothers>no</visibletoothers>
          <isshared>yes</isshared>
    </gamezone>
   
    <generalfunction>
        <label>Draw</label>
        <kind>TRANSFERCARD</kind>
        <sourcegamezone>Deck</sourcegamezone>
        <sourceposition>top</sourceposition>
        <destinationowner>performer</destinationowner>
        <destinationgamezone>Hand</destinationgamezone>
        <destinationposition>top</destinationposition>
        <includeasbutton>yes</includeasbutton>
    </generalfunction>
    <generalfunction><label>Previous Turn</label><kind>PEREVIOUSTURN</kind></generalfunction>
    <generalfunction><label>Next Turn</label><kind>NEXTTURN</kind></generalfunction>   
</plugin>


Here's what I see under the table when I load this plugin:
(http://i.imgur.com/BlbvcsO.png)
This is not good.

If I remove isshared from the "Deck" zone, then it looks like this:
(http://i.imgur.com/fja19g2.png)
This is much better... but I need the deck to be shared.
Does anyone know a way to solve this problem?
Title: Re: UI problem with shared zones
Post by: Trevor on March 13, 2015, 04:09:00 PM
Looks like a bug. I'll fix it when I can.
Title: Re: UI problem with shared zones
Post by: Hyphen-ated on March 17, 2015, 10:19:42 PM
I found another UI problem with shared zones, so I guess I'll post it in this same thread.

I've put multiple shared zones in my plugin now, and luckily this somehow makes the problem in my OP go away.

But now I have this:
(http://i.imgur.com/Szw1E1P.png)
So far so good, three shared zones and two private ones, but if I click on "jacks" and then click on "bonuses" it looks like this:
(http://i.imgur.com/2tIT23f.png)
uhhhh. It acts like they're all selected. It still shows the correct cards in the tray, though, based on whichever one I clicked most recently.
(http://i.imgur.com/lXLXHdq.png)
Clicking a non-shared zone restores normality