Open MNoya opened 8 years ago
I've started development on this, progress update: 12/12/15 @ 18:32
Functionality Implement: Initial Setup -> XML/CSS/JS/Manifest; files incl; objects/scripts/xml. Player creation Main Panel
In Progress; Design of the layout and styling.
Functionality left to implement: Hide Players (when player leaves they will be hidden from panel) Lock Panels (currently there's no restriction) Request Gold & Lumber Send Gold & Lumber Share Unit Control Share Vision (automatically done for alliances) Ally (defined at team selection) Gold/Lumber icons ... And any other possible functionality defined at any given phase.
Leave criticism and comments at the bottom or on IRC.
Progress Update: 13/12/15 @ 16;36
Functionality Implemented: Click behaviour (Left = add, right = Subtract) Normal Click adds 100 gold or lumber Shift + Click adds 1000 gold or lumber Alt + Click adds max gold or lumber
Gold & Lumber checker that ensures that the current gold and lumber entered does not succeed player lumber or gold, and appriopriately deducts the value if player spends the lumber or gold.
Removed the tickboxes, we deemed them unnecesary, possibility of adding Unit Share in the future.
Added trade completion, after confirmed data is send to lua to handle the transaction
leave criticism and comment down below or in irc.
Excellent! I think we can have Unit Share through
PlayerResource:AreUnitsSharedWithPlayerID(int nUnitOwnerPlayerID, int nOtherPlayerID)
PlayerResource:GetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID)
PlayerResource:SetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID, int nFlag, bool bState)
Progress Update: 17/12/15 @ 18:28 Incrementation logic should be fixed. Code refractored general styling
To-Do: Testing to catch out any possible errors Implement unit sharing Test team assignment properly! Iimprove the pre-game selection to solve the team assignment properly
Possible Errors: I was unable to get players to draw on the panel when using bots, I suspect this is due to poor team assignment on the pre-game selection so I suspect in the testing we would be unable to see eachother.
Team checking logic: https://github.com/MNoya/DotaCraft/blob/cd71e6073ffe9725947a2333cb72098e3db56b5a/content/dota_addons/dotacraft/panorama/scripts/trading_alliances/ResourceTradingAndAlliances.js#L29-L35
With the next progress update I should of addressed these issues.
Leave criticism and comments at the bottom or on IRC.
Reopening this as we seem to be missing the unit-sharing capability
Always forget this feature existed
If we had access to Shared Units, that would be nice