Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mapName argument to functions in TokenImage.java, Close #541 #542

Merged
merged 2 commits into from Aug 9, 2019

Conversation

Merudo
Copy link
Member

@Merudo Merudo commented Aug 5, 2019

Add mapName as optional argument (defaults to current map) in the following functions in TokenImage:

    getTokenImage
    getTokenPortrait
    getTokenHandout
    setTokenImage
    setTokenPortrait
    setTokenHandout
    setTokenOpacity
    getTokenOpacity

Add optional parameter tokenId to these functions:

    getTokenImage
    getTokenPortrait
    getTokenHandout

Close #541


This change is Reviewable

Add mapName as optional argument (defaults to the current map) in the following functions in TokenImage:

        getTokenImage
        getTokenPortrait
        getTokenHandout
        setTokenImage
        setTokenPortrait
        setTokenHandout
        setTokenOpacity
        getTokenOpacity

Add optional parameter tokenId to these functions:

        getTokenImage
        getTokenPortrait
        getTokenHandout

Close RPTools#541
As proposed in RPTools#549, remove the redundant putToken() calls for the following functions:

setTokenImage(), setTokenPortrait(), setTokenHandout() and setTokenOpacity()

all of which now call MapTool.serverCommand().putToken once only, and do not call zone.putToken() directly.
@Phergus Phergus added this to In progress in MapTool 1.5.4 via automation Aug 9, 2019
Copy link
Contributor

@Phergus Phergus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

Reviewable status: 0 of 2 files reviewed, all discussions resolved

MapTool 1.5.4 automation moved this from In progress to Reviewer approved Aug 9, 2019
Copy link
Contributor

@Phergus Phergus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Phergus Phergus merged commit bdc90ee into RPTools:develop Aug 9, 2019
MapTool 1.5.4 automation moved this from Reviewer approved to Done Aug 9, 2019
@Merudo Merudo deleted the TokenImage branch August 10, 2019 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
MapTool 1.5.4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants