Jump to content
  • Advertisement

Madhed

Member
  • Content count

    1245
  • Joined

  • Last visited

Community Reputation

4095 Excellent

About Madhed

  • Rank
    Contributor

Personal Information

  • Interests
    Art
    Audio
    Business
    Design
    DevOps
    Education
    Production
    Programming
    QA

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Small update:   The parser and themeing system is now fully customizable. Programmers can add new style properties, types and style sheet functions with a few lines of code.   The previously hardcoded parts are now rewritten to use this extension system themselves. It's already nice to work with but will be refactored to reduce the needed code even more.   As a normal user of the system you won't have to touch this code, of course. It is geared towards developers who want to customize the system.   The default theme extension: /// <summary> /// The default extension for uGUI functionality and basic types /// </summary> public class DefaultExtension : ThemeExtension { public override void AddTypeHandlers(Theme t) { t.AddTypeHandler(new FloatTypeHandler()); } public override void AddFunctionHandlers(Theme t) { t.AddFunctionHandler("lerp", new ColorLerpFunctionHandler()); t.AddFunctionHandler("lerp", new FloatLerpFunctionHandler()); t.AddFunctionHandler("lerp", new Vector2LerpFunctionHandler()); t.AddFunctionHandler("lerp", new Vector3LerpFunctionHandler()); t.AddFunctionHandler("vec2", new Vec2FunctionHandler()); t.AddFunctionHandler("vec3", new Vec3FunctionHandler()); t.AddFunctionHandler("rgba", new RGBAFunctionHandler()); } public override void AddPropertyHandlers(Theme t) { t.AddTweenablePropertyHandler("font-size", new FontSizePropertyHandler()); t.AddTweenablePropertyHandler("color", new ColorPropertyHandler()); t.AddTweenablePropertyHandler("scale", new ScalePropertyHandler()); t.AddPropertyHandler("font", new FontPropertyHandler()); t.AddPropertyHandler("sprite", new SpritePropertyHandler()); } } The lerp function for colors: public class ColorLerpFunctionHandler : GenericParserFunction<Color, Color, float, Color> {    protected override Color CalculateResult() {        return arg1 + (arg2 - arg1) * arg3;    } }
  2. Hi there!   I've always found the styling process of UIs in Unity3D a bit frustrating.   For the last month or so I have been working on a system that let's you use CSS-like stylesheets to control every aspect of your UI design. Colors, sizes, sprites, fonts, tweens, etc.   The stylesheets are a bit more advanced than "regular" CSS. You can use named constants that can be edited from within the Unity editor. Also included are math functions like lerp(), max(), etc. to let you calculate colors/vectors/etc. based on multiple values.   It's currently WIP but already pretty usable. I would love to know what you think of this and let me know if you have any suggestions!   Here are some gifs/videos of the system in action:   Editing styles while playing in editor   "Mines" demo: 160 lines of C#, 100 lines of CSS     "Loot" Demo: 230 lines of C#, 100 lines of CSS  
  3. Madhed

    How do you like your eggs in the morning?

      *Bird period. Unless you're eating balut.   Mmh yummy
  4. What is the problem with your current implementation? It seems you believe there is a better way, what do you have in mind?
  5. Ha, found it!   The game is called Roketz and was released in 1994 on the Amiga and 1996 on the PC.  
  6.   Nope...     I believe the game also had some kind of racing element IIRC but I'm not sure. I think the main objective was to finish laps and shooting the other player was just a bonus.
  7. @ncsu   Thanks, but that's not the game I was looking for. The gameplay was exactly the same though. It only had better graphics and I think it was only split screen multiplayer.
  8. Nah, not Descent. Thanks though
  9. So I was just thinking about this game I played when I was younger but I can't for the life of me remember its name.   It was a top down shooter where you control a spaceship similar to asteroids. It had a multiplayer deathmatch mode and was taking place in some kind of factory or space station, so not open space.   The graphics, if I remember correctly, were pretty detailed prerendered sprites and it supported SVGA resolutions. I don't know if it was a DOS or windows game, however.   This must have been around 1995-1998 and I think I only ever played the demo version that came with a games magazine in germany.   Anyone have any hints?   Thanks   EDIT: It was in 2D
  10. Madhed

    How do you like your eggs in the morning?

    Ah you are ok. I was worried there for a moment.    Boiled somewhere between liquid and hard. With a bit of butter and a pinch of salt.
  11. Madhed

    You Aren

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!