These are chat archives for ikkentim/SampSharp

18th
Oct 2016
Xalphox
@Xalphox
Oct 18 2016 00:08
FYI Tim - re: that issue I had with debugger text, this is also what happens when I try to right click a variable while in break mode
Also - in the locals pane, this is what I get
til I use the right click > show hexadecimal display
Xalphox
@Xalphox
Oct 18 2016 00:13
I will reinstall VS to see if that helps
Xalphox
@Xalphox
Oct 18 2016 00:20
it did indeed - seems to be down to settings
Xalphox
@Xalphox
Oct 18 2016 00:27
... perhaps not; interesting
it works with a breakpoint in a method called from OnInitialized, but not one called from OnPlayerConnected
Can anyone confirm that?
Tim Potze
@ikkentim
Oct 18 2016 09:06
I think that worked just fine for me, I’ll try when I can
Tim Potze
@ikkentim
Oct 18 2016 20:56
:O I had to step once for this to reveal values
Florian van Dillen
@fvandillen
Oct 18 2016 21:06
Love how MetaRPG has completely different organization compared to my gamemode
Yet works very similarly
Tim Potze
@ikkentim
Oct 18 2016 21:43
Useful when testing ui stuff :) https://puu.sh/rNBfl/69235818c5.png
forget about hte PlayerConnected += ... , it's all about the process.start and the exit :P
Tim Potze
@ikkentim
Oct 18 2016 22:36
been converting Xalphox' ui code to a more slightly more slick/winform-ish format https://puu.sh/rNEls/99a46955b5.png
Xalphox
@Xalphox
Oct 18 2016 22:36
sounds good
Tim Potze
@ikkentim
Oct 18 2016 22:36
Once it's all done, I'm going to take a look at the designer stuff :)
That will be sooo awesome
Xalphox
@Xalphox
Oct 18 2016 22:37
Don't set values unless you have to/they've been changed
Tim Potze
@ikkentim
Oct 18 2016 22:37
Yup
Xalphox
@Xalphox
Oct 18 2016 22:37
Seems SA-MP has a limit on how many textdraw updates it sends per frame
Tim Potze
@ikkentim
Oct 18 2016 22:37
Interesting, can always implement something to take that into account
Xalphox
@Xalphox
Oct 18 2016 22:38
Yeah - I was playing with animations not too long ago, and that was a frustrating outcome
The faster/more frequently I sent updates, the more jittery it became :P
Tim Potze
@ikkentim
Oct 18 2016 22:38
I've implemented a winform like SuspendLayout/ResumeLayout/PerformLayout
Xalphox
@Xalphox
Oct 18 2016 22:38
You got an ETA on this? If so, I'll hold off on UI stuff until you're done and then use native OOTB S# stuff
Also - one of the things I've added since I sent you guys the copy was helper functions around positioning:
        public Vector2X Above(float padding, Vector2X size)
        {
            float x = 0;
            float y = -size.Y - padding;

            return new Vector2X(x, y);
        }

        public Vector2X Below(float padding)
        {
            float x = 0;
            float y = this.Height + padding;

            return new Vector2X(x, y);
        }

        public Vector2X Left(float padding, Vector2X size)
        {
            float x = size.X - padding;
            float y = 0;

            return new Vector2X(x, y);
        }

        public Vector2X Right(float padding)
        {
            float x = this.Width + padding;
            float y = 0;

            return new Vector2X(x, y);
        }

        public Vector2X Middle(Vector2X size)
        {
            float x = 0.0f;
            float y = (this.Height / 2) + (size.Y / 2);

            return new Vector2X(x, y);
        }

        public Vector2X Centre(Vector2X size)
        {
            float x = (this.Width / 2) + (size.X / 2);
            float y = 0.0f;

            return new Vector2X(x, y);
        }

        public Vector2X CentreAndMiddle(Vector2X size)
        {
            return Middle(size) + Centre(size);
        }
Tim Potze
@ikkentim
Oct 18 2016 22:40
It's the only thing i work on atm, but I've promised myself to only work on sampsharp in the evenings and weekends, because last week I've wasted a bunch of time I could have worked :P But anyhow, don't expect this to take too long anymore
Xalphox
@Xalphox
Oct 18 2016 22:40
Awesome
Tim Potze
@ikkentim
Oct 18 2016 22:40
Yea I want to do anchoring
Hope that will work out :P
Xalphox
@Xalphox
Oct 18 2016 22:41
I gotta start preparing for next month
I accepted a new job earlier
Tim Potze
@ikkentim
Oct 18 2016 22:41
by the way, in latest pre-prelease, you now have more functions in vector2/3
nice, congrats :)
00:42, g2g :)
Xalphox
@Xalphox
Oct 18 2016 22:43
gnight
Tim Potze
@ikkentim
Oct 18 2016 22:43
ty