thiccthighs 8 Share Posted February 13, 2023 Hello, I would love to see a "profiles" section on the breaks page, so that I can easily apply different break schedules to different clients on the same machine. Would this be a feature that could be easily implemented? Or is there a way to do this now without a VPS? Thanks theminisund2 1 Link to comment Share on other sites More sharing options...
falselystated 2 Share Posted February 16, 2023 I thought of this several times in the past. This should be easy enough to implement ( I'm a programmer ) It would be good to see this feature in DB as its sorely needed. For now you can use an automation tool such as Bun Automation which supports Timed Actions such as Account Swap and Breaks etc to do the same thing! theminisund2 1 Link to comment Share on other sites More sharing options...
falselystated 2 Share Posted February 16, 2023 So for the Devs: class Break // Just an Example { Time start; Time end; } class BreakInfo // Literally this is an old style struct but just use a class. You could have a constructor which just takes in "Name" and a Break; { string name Break break } Dictionary<string,BreakInfo>() breaks; // You could store the Break with a Key of the Breaks name ( set by the user in the GUI ) or as an ID number generated when the user inputs a new Break profile // You could store the current break as a BreakInfo reference or just a break BreakInfo currentBreak; //Or Break currentBreak; The advantage of storing the Dictionary KeyValuePair is that you wont need to lookup the Break by Key in the Dictionary but seeing as looking up a key is actually a O(1) operation so it will always take.. eg 14 Nanoseconds no matter how big the dictionary gets, its not really an issue. Obviously the look up time negligible for a single use case like looking up break profiles once in a while ( whenever the user clicks ) but if it was for something running thousands of times a frame you'd obviously want to store the reference to BreakInfo itself. Devs HMU if you want a prototype break system. I could probably write one very quickly that is fully featured and has per account and per profile break settings. I do stuff in C# but you can easily re syntax it. I would just leave out the GUI calls and place comments where they should be. Link to comment Share on other sites More sharing options...
dringo 0 Share Posted March 25, 2023 (edited) bumping this Edited March 25, 2023 by dringo Link to comment Share on other sites More sharing options...
outlaw117 0 Share Posted June 3, 2023 bump Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now