{"action":"created","issue":{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/issues/4267","repository_url":"https://api.github.com/repos/ParadiseSS13/Paradise","labels_url":"https://api.github.com/repos/ParadiseSS13/Paradise/issues/4267/labels{/name}","comments_url":"https://api.github.com/repos/ParadiseSS13/Paradise/issues/4267/comments","events_url":"https://api.github.com/repos/ParadiseSS13/Paradise/issues/4267/events","html_url":"https://github.com/ParadiseSS13/Paradise/pull/4267","id":150253703,"number":4267,"title":"-tg- HUD styles","user":{"login":"tigercat2000","id":10103534,"avatar_url":"https://avatars.githubusercontent.com/u/10103534?v=3","gravatar_id":"","url":"https://api.github.com/users/tigercat2000","html_url":"https://github.com/tigercat2000","followers_url":"https://api.github.com/users/tigercat2000/followers","following_url":"https://api.github.com/users/tigercat2000/following{/other_user}","gists_url":"https://api.github.com/users/tigercat2000/gists{/gist_id}","starred_url":"https://api.github.com/users/tigercat2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tigercat2000/subscriptions","organizations_url":"https://api.github.com/users/tigercat2000/orgs","repos_url":"https://api.github.com/users/tigercat2000/repos","events_url":"https://api.github.com/users/tigercat2000/events{/privacy}","received_events_url":"https://api.github.com/users/tigercat2000/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/labels/Feature","name":"Feature","color":"26A726"},{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/labels/Fix","name":"Fix","color":"26C5E2"},{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/labels/Merge%20Conflict","name":"Merge Conflict","color":"268189"},{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/labels/Refactor","name":"Refactor","color":"FFB626"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-22T03:19:21Z","updated_at":"2016-04-22T03:24:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/pulls/4267","html_url":"https://github.com/ParadiseSS13/Paradise/pull/4267","diff_url":"https://github.com/ParadiseSS13/Paradise/pull/4267.diff","patch_url":"https://github.com/ParadiseSS13/Paradise/pull/4267.patch"},"body":"Changes:\r\n - Added a number of new hud styles\r\n   - All of these HUD styles are the correct transparency at '255' alpha (they have alpha on the sprites themselves) and color \"#FFFFFF\". Any other alpha or color is not guaranteed to look very good with these.\r\n   - Operative\r\n     - A red HUD style, meant to be Syndicate themed. \r\n     - ![img](https://puu.sh/orgiv/61b6c12193.png)\r\n   - Plasmafire\r\n     - Bright orange with a mildly blue background. \r\n     - ![img](https://puu.sh/orgcn/6a0b20287a.png)\r\n   - Retro\r\n     - Styled after the old SS13 HUD, it's bright green with a bright blue background, but not all slots have backgrounds.\r\n     - ![img](https://puu.sh/orgf0/b16500334e.png)\r\n   - Slimecore\r\n     - A very green HUD style. It does look like slime, to some extent. \r\n     - ![img](https://puu.sh/orghN/fdb9c977a8.png)\r\n\r\n - Changing your HUD via the Game Preferences panel will correctly refresh your HUD now. Mildly snowflakey, but hey, it's pretty nice.\r\n\r\n - Refactored a large amount of HUD code in order to do this.\r\n   - F12 no longer directly links to huds being shown or not, it's now handled on /datum/hud/show_hud()\r\n   - Huds are now handled in a much more OOP way; Mobs with a HUD define a custom create_mob_hud() proc, which looks like:\r\n```\r\n/mob/create_mob_hud()\r\n\tif(client && !hud_used)\r\n\t\thud_used = new /datum/hud/custom_hud(src)\r\n```\r\n - Mobs no longer delete their HUD every time Login() is called. This could be a bad idea, but we'll see how it does, I haven't encountered any related problems testing this.\r\n\r\n - Removed the remaining aim mode functionality.\r\n   - It was a maintainability nightmare that I couldn't comprehend well enough to fix to work with the new way HUD objects work. Look at [this](https://github.com/ParadiseSS13/Paradise/blob/master/code/modules/projectiles/targeting.dm#L103-L137), or [this (doesn't make any sense, why does it add hud objects to someone holding the weapon when it aims??)](https://github.com/ParadiseSS13/Paradise/blob/master/code/modules/projectiles/targeting.dm#L180-L213) to see what I mean.\r\n\r\n - Renamed all of the screen1_X icons to screen_x.\r\n - Removed most of the duplicated icons between each of the \"screen\"s, any shared icons now use icons/mob/screen_gen.dmi\r\n - Refactored adding objects to the client screen (it's no longer handled in a catch-all \"shove all contents in client screen\" anymore)\r\n   - This is the most likely thing to horrifyingly break, so please report any \"ALL OF MY ITEMS ARE GONE OH JESUS\" bugs.\r\n\r\n:cl:\r\nrscadd: Added 4 new HUD styles, \"Operative\", \"Plasmafire\", \"Retro\", and \"Slimecore\"\r\nrscadd: You can now view HUD changes in real-time, by going to Preferences (top right tab) > Game Preferences and changing the HUD style (limited to humans).\r\nrscadd: There are now three HUD styles you can get via the f12 button- Full, which contains all of your buttons, Minimal, which only contains a few essential buttons, and None, which is a completely blank screen.\r\nrscdel: Removed the remaining aiming code due to maintainability issues and incompatibility with HUD styles.\r\ntweak: Mobs with HUD's now use a unique subtype instead of an anti-OOP else-if chain.\r\ntweak: Refactored how objects (IE, stuff you pick up) is rendered to the HUD. This should fix the reoccuring \"stuff on my screen that definately isn't meant to be there\" bug, but keep an eye out for things that do not appear.\r\n/:cl:\r\n"},"comment":{"url":"https://api.github.com/repos/ParadiseSS13/Paradise/issues/comments/213227699","html_url":"https://github.com/ParadiseSS13/Paradise/pull/4267#issuecomment-213227699","issue_url":"https://api.github.com/repos/ParadiseSS13/Paradise/issues/4267","id":213227699,"user":{"login":"KasparoVy","id":12377767,"avatar_url":"https://avatars.githubusercontent.com/u/12377767?v=3","gravatar_id":"","url":"https://api.github.com/users/KasparoVy","html_url":"https://github.com/KasparoVy","followers_url":"https://api.github.com/users/KasparoVy/followers","following_url":"https://api.github.com/users/KasparoVy/following{/other_user}","gists_url":"https://api.github.com/users/KasparoVy/gists{/gist_id}","starred_url":"https://api.github.com/users/KasparoVy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KasparoVy/subscriptions","organizations_url":"https://api.github.com/users/KasparoVy/orgs","repos_url":"https://api.github.com/users/KasparoVy/repos","events_url":"https://api.github.com/users/KasparoVy/events{/privacy}","received_events_url":"https://api.github.com/users/KasparoVy/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T03:24:42Z","updated_at":"2016-04-22T03:24:42Z","body":"Damn, wow. That looks pretty wicked. Awesome work! Mainly digging the second and last from the top, myself. Haha.\r\n\r\n:+1:"}}