• GMod - What are you working on? September 2017 (#73)
    263 replies, posted
[QUOTE=Moat;52645845]I understand animations are cool and all, however some users might find long animations annoying to sit through. Just something to think about. :smile:[/QUOTE] You can upgrade the computer to speed them up (=
[QUOTE=PIXX;52645604]You mean to change to more transparent black?[/QUOTE] That'd probably look better, yeah [editline]4th September 2017[/editline] Also, the spacing looks a bit odd. The entry boxes should probably be the same width as the buttons [editline]4th September 2017[/editline] sorry for the abuse
[QUOTE=G4MB!T;52645532]@Nak I really hate to be one of those people who asks and suggests features but would it be possible to set the time of day from HM/S?[/QUOTE] There is a function called StormFox.SetTime, that supports a number from 0-1440 or a 24-clock string (hour:min). Also a serverside convar 'sf_timespeed', that indicates the minutes of ingame-time pr second. However SF can get confused when setting the time doing a weather-translation. Turning the map into a disco-floor for a few seconds, so its better to set the timespeed. Unless I find a solution to it.
The next time I am in Denmark I will buy you whatever kind of beverage is common in Denmark.
Working on more UI for Monolith - this time it's the bank interface. Here's something I found very useful for the central menu I created lately, it has a utility menu. This means I can embed other panels and menus into the remaining space of the menu and it really fits. Here's what the bank interface looks like so far. [video]https://youtu.be/Cqj3gbyCE7Q[/video] I plan to allow the support to add containers so players can store items in them and it would seamlessly integrate into this menu.
Hi all, Just finished my track curving layout using ray intersection. [video=youtube;1rsDHU79J50]https://www.youtube.com/watch?v=1rsDHU79J50[/video]
[QUOTE=dvd_video;52646367]Hi all, Just finished my track curving layout using ray intersection. [video=youtube;1rsDHU79J50]https://www.youtube.com/watch?v=1rsDHU79J50[/video][/QUOTE] Of that unnecessary 10 min video, I scammed through a total of 30 seconds and seen everything I need to see....
[QUOTE=MPan1;52645864]That'd probably look better, yeah [editline]4th September 2017[/editline] Also, the spacing looks a bit odd. The entry boxes should probably be the same width as the buttons [editline]4th September 2017[/editline] sorry for the abuse[/QUOTE] [IMG]http://i.imgur.com/4md1feA.jpg[/IMG]
[QUOTE=PIXX;52647096][IMG]http://i.imgur.com/4md1feA.jpg[/IMG][/QUOTE] Looks quite a bit better, but I wish the spacing looked like this: [IMG]http://i.imgur.com/Kv3C1mS.png[/IMG] Also, the exclamation marks are a bit unnecessary Sorry for the additional slave labour
[QUOTE=PIXX;52647096][IMG]http://i.imgur.com/4md1feA.jpg[/IMG][/QUOTE] Looks like a Republic of Gamers(TM) background.
[QUOTE=MPan1;52649138]Looks quite a bit better, but I wish the spacing looked like this: [IMG]http://i.imgur.com/Kv3C1mS.png[/IMG] Also, the exclamation marks are a bit unnecessary Sorry for the additional slave labour[/QUOTE] ah edit: perfectly drawn arrow (sorry for the insult, it's suppose to be funny) edit 2: [IMG]http://i.imgur.com/GPEI979.jpg[/IMG] [editline]5th September 2017[/editline] [QUOTE=G4MB!T;52649163]Looks like a Republic of Gamers(TM) background.[/QUOTE] A friend gave it to me, so I am planing on changing it to something, maybe custom?
[QUOTE=PIXX;52650576]ah edit: perfectly drawn arrow (sorry for the insult, it's suppose to be funny) edit 2: [IMG]http://i.imgur.com/GPEI979.jpg[/IMG] [editline]5th September 2017[/editline] A friend gave it to me, so I am planing on changing it to something, maybe custom?[/QUOTE] Your padding is not centered. Does it support multiple resolutions?
[QUOTE=Kevlon;52650882]Your padding is not centered. Does it support multiple resolutions?[/QUOTE] I am currently testing it on 1280x720 (in Window mode) Some of the code looks like this: [code] surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() ) --background size surface.DrawRect(frame:GetWide() - 220,(frame:GetTall() / 3),220,120) -- the right side name3:SetPos(frame:GetWide() - name3:GetWide() - 150,frame:GetTall() /3 + 5) -- name entry models:SetPos(frame:GetWide() - models:GetWide() - 150,frame:GetTall() /3 + name3:GetTall() + 15) -- the models dropdown (<NO MODELS> ) [/code]
So that would be no. You need to scale your raw offset numbers for different resolutions.
Hello, This is a message from Raubana. You probably know me from my gamemodes and content I post to the WAYWO threads in Developer Discussions. I got myself permabanned the other night while very-not-sober by posting a shitpost titled something like "I'M ABOUT TO DO SOMETHING STUPID". My intent was to simply get myself temp banned, as I've been spending a lot of my time trying to impress strangers on these forums while ignoring my reality. I guess I can write that up as a coping mechanism I've falling into. Attempting to get myself banned was my first step towards forcing myself to address it. In my stupor I forgot how unforgiving this community's mods can be, so of course I was permabanned instead of tempbanned. [B]This is okay[/B]. The account was "permabanned" in the past during a similar attempt to forcefully remove myself from this community, and I grew as an individual during my time away. Right now I'm at a point in my life where I need to make a decision about what to do with it. It's a decision I need to stick to it - I have no choice. However, I am struggling to make that choice while distracted, so I need to remove the distractions and try my best to make the decision before it's too late. That being said, I was selfish for not giving a proper explanation to those who respect me and my work before getting myself banned. I'm sorry. Please forgive me. Let me give a rundown of my life, generally speaking, to paint an idea of why doing this is so important. I have depression. I also have ADD and narcolepsy. These all impair my ability to live a normal life, I get distracted easily, I give up on stuff just before it's done, and I'm lucky if I'm awake and happy enough to even do anything. Time is a resource, and it's something I have very little of, so I need budget it very carefully. I can't keep using my time making artwork and games anymore. The only way I could do that is if I were somehow making a living at the same time, and getting to that point doesn't seem feasible for me (not without doing something that goes against my morals, anyways). I am 24 years old, and I still live in my parents basement - yes, despite my efforts, I've sadly fallen into that stereotype. I am a "loser". When I turn 25 I will no longer be living here, so I'll have to either have my shit already figured out by then or end up... I don't know, homeless or something. I don't know what else to say besides thank you all for the experiences. I hope you all continue to inspire one another and make wonderful projects. Raubana [highlight](User was banned for this post ("DONT post for permabanned users" - Kiwi))[/highlight]
[QUOTE=code_gs;52651741]So that would be no. You need to scale your raw offset numbers for different resolutions.[/QUOTE] Good to know... now how (except doing shit with ScrW() and ScrH())
[QUOTE=PIXX;52652546]Good to know... now how (except doing shit with ScrW() and ScrH())[/QUOTE] Exactly like that
[QUOTE=Gmod4phun;52652568]Exactly like that[/QUOTE] the frame size is set to be ScrW() and ScrH() [code] frame:SetSize(ScrW(),ScrH()) [/code] So I don't know what's the issue lol
[QUOTE=PIXX;52652602]the frame size is set to be ScrW() and ScrH() [code] frame:SetSize(ScrW(),ScrH()) [/code] So I don't know what's the issue lol[/QUOTE] If the frame size is that then you don't need to do this: [CODE] surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() ) --background size [/CODE] You can just do this: [CODE] surface.DrawTexturedRect( 0, 0, w, h ) -- w = panel width, h = panel height [/CODE]
[QUOTE=mib999;52641224]Working on a new central inventory/main menu for Monolith: here's what it looks like so far! [img]https://dl.dropboxusercontent.com/s/jxoy32ryq6n6w76/coUImdbD.png[/img][/QUOTE] This is ridiculous, it looks amazing, job man!
[QUOTE=Conna;52652948]This is ridiculous, it looks amazing, job man![/QUOTE] Thank you! :) Worked really hard on it with so many different iterations, here's some older pictures I was not so happy with. [quote][img]https://dl.dropboxusercontent.com/s/tcb6y4csfg37mpy/xWbKIaxD.png[/img] [img]https://dl.dropboxusercontent.com/s/gs4c2c9a7civqkp/ID7hP1xS.png[/img] [img]https://dl.dropboxusercontent.com/s/5ufr7nurgub0jj7/Xvm5VXE7.png[/img] [/quote]
[QUOTE=mib999;52653255]Thank you! :) Worked really hard on it with so many different iterations, here's some older pictures I was not so happy with.[/QUOTE] How did you get the HUD to be darker on the edges than on the inside? Did you use a material?
[QUOTE=MPan1;52652849]If the frame size is that then you don't need to do this: [CODE] surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() ) --background size [/CODE] You can just do this: [CODE] surface.DrawTexturedRect( 0, 0, w, h ) -- w = panel width, h = panel height [/CODE][/QUOTE] true, but it's gonna be the same code in the end
[QUOTE=PIXX;52653575]true, but it's gonna be the same code in the end[/QUOTE] Using the width and height passed to the Panel:Paint function will be faster so you're better off using it anyway.
[QUOTE=txike;52653583]Using the width and height passed to the Panel:Paint function will be faster so you're better off using it anyway.[/QUOTE] Oh, thanks... I changed most of the code (only the DFrame has ScrW and ScrH)
[QUOTE=txike;52653583]Using the width and height passed to the Panel:Paint function will be faster so you're better off using it anyway.[/QUOTE] Yeah but it's really, really not a big deal. It's mostly just a matter of convenience so you don't have to do frame:GetSize() in every paint hook and it's necessary for docked panels but aside from that if it works it works. Microoptimizations take 10 seconds to write and save 5 seconds of total cumulative processing time. Focus on the big things.
[QUOTE=bobbleheadbob;52654623]Yeah but it's really, really not a big deal. It's mostly just a matter of convenience so you don't have to do frame:GetSize() in every paint hook and it's necessary for docked panels but aside from that if it works it works. Microoptimizations take 10 seconds to write and save 5 seconds of total cumulative processing time. Focus on the big things.[/QUOTE] I thought that you can just invalidate layout on docked panels to get their proper bounds and size? :)
[QUOTE=RaKo;52654633]I thought that you can just invalidate layout on docked panels to get their proper bounds and size? :)[/QUOTE] Every time I've ever tried that it hasn't worked for me. Either way panel:Paint() always seems to know.
[QUOTE=PIXX;52653589]Oh, thanks... I changed most of the code (only the DFrame has ScrW and ScrH)[/QUOTE] The real issue was that ur panels don't reposition with scale
[QUOTE=txike;52653305]How did you get the HUD to be darker on the edges than on the inside? Did you use a material?[/QUOTE] Yeah.
Sorry, you need to Log In to post a reply to this thread.