{"action":"created","issue":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/782","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/782/comments","events_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/782/events","html_url":"https://github.com/OpenDungeons/OpenDungeons/pull/782","id":83676886,"number":782,"title":"Handle inputs in a generic way in gamemode/editormode + small fix on worker behaviour + used macro for logs","user":{"login":"hwoarangmy","id":7493706,"avatar_url":"https://avatars.githubusercontent.com/u/7493706?v=3","gravatar_id":"","url":"https://api.github.com/users/hwoarangmy","html_url":"https://github.com/hwoarangmy","followers_url":"https://api.github.com/users/hwoarangmy/followers","following_url":"https://api.github.com/users/hwoarangmy/following{/other_user}","gists_url":"https://api.github.com/users/hwoarangmy/gists{/gist_id}","starred_url":"https://api.github.com/users/hwoarangmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwoarangmy/subscriptions","organizations_url":"https://api.github.com/users/hwoarangmy/orgs","repos_url":"https://api.github.com/users/hwoarangmy/repos","events_url":"https://api.github.com/users/hwoarangmy/events{/privacy}","received_events_url":"https://api.github.com/users/hwoarangmy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-01T20:24:27Z","updated_at":"2015-06-05T22:25:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/pulls/782","html_url":"https://github.com/OpenDungeons/OpenDungeons/pull/782","diff_url":"https://github.com/OpenDungeons/OpenDungeons/pull/782.diff","patch_url":"https://github.com/OpenDungeons/OpenDungeons/pull/782.patch"},"body":"I've splitted the commit between spell/room/trap to make it easier to read. The basic idea is to let each spell/room/trap handle the inputs (selected tiles/text) as it wants. For example, building a door will not allow to choose more than 1 tile and will display an explicit text if the door is not next to 2 full tiles.\r\nLater, it will also allow to change easily icons if we want to (per spell/room/trap).\r\n\r\nI've also changed a bit how text is displayed when building rooms/traps/spells\r\n- If the player do not select tiles, the price will be for 1 target and red if not enough mana/gold for 1 target. White otherwise.\r\n- if the player selects a tile (left button), the price will be displayed white and it will be what will be spent if he releases the button (0 if no target or not enough gold/mana or more if enough gold/mana).\r\n\r\nNote that ATM, the tile selector is not displayed by default in gamemode (only when tiles are selected for digging). This is more to test this behaviour. If you prefer displaying it, I will make a commit."},"comment":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/comments/109462132","html_url":"https://github.com/OpenDungeons/OpenDungeons/pull/782#issuecomment-109462132","issue_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/782","id":109462132,"user":{"login":"hwoarangmy","id":7493706,"avatar_url":"https://avatars.githubusercontent.com/u/7493706?v=3","gravatar_id":"","url":"https://api.github.com/users/hwoarangmy","html_url":"https://github.com/hwoarangmy","followers_url":"https://api.github.com/users/hwoarangmy/followers","following_url":"https://api.github.com/users/hwoarangmy/following{/other_user}","gists_url":"https://api.github.com/users/hwoarangmy/gists{/gist_id}","starred_url":"https://api.github.com/users/hwoarangmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwoarangmy/subscriptions","organizations_url":"https://api.github.com/users/hwoarangmy/orgs","repos_url":"https://api.github.com/users/hwoarangmy/repos","events_url":"https://api.github.com/users/hwoarangmy/events{/privacy}","received_events_url":"https://api.github.com/users/hwoarangmy/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:25:05Z","updated_at":"2015-06-05T22:25:05Z","body":"@Bertram25 @akien-mga I've fixed the issue. I had tested enemy traps loaded from level and allied built ingame. But not loaded from level ^^\r\nNow, it should be ok."}}