Giter Site home page Giter Site logo

unitytool-windowhandler's Introduction

WindowHandler - Unity3D tool

This is a script provide in depth customization of the built game window.

Note: This system works on windows only

Place the script anywhere in your assets folder and the script will take care of the rest.

Functions available:

Window Updaters:

// GetWindowInfo
WindowHandler.GetWindowInfo();
	// Updates all the WindowHandler member variables.
    
// UpdateWindowPosition
WindowHandler.UpdateWindowPosition();
	// Updates the window position if changes are made but not pushed.

Window Transformers:

// SetWindowSize
WindowHandler.SetWindowSize( int width, int height );
	// Resizes the window to the desired width and height.
  
// SetWindowPosition
WindowHandler.SetWindowPosition( int x, int y );
	// Moves the window to the desired position.

Mouse Postions:

// GetMousePosition
WindowHandler.GetMousePosition()
  // Returns a Vector2 of the mouse position in monitor space (works for multiple monitor environments).
  
// GetMousePositionInWindow
WindowHandler.GetMousePositionInWindow()
  // Returns a Vector2 of the mouse position relitave to the window.

Window Modifiers

// SetWindowTopmost
WindowHandler.SetWindowTopmost( bool pinToTop );
	// Sets whether the window should display over the top of all other windows.

// SetWindowTransparency
WindowHandler.SetWindowTransparency( bool isTransparent );
	// Sets whether the window should key out all pixels with a certain color key ( 0x00000000 by default ).

// SetWindowIgnoreClicks
WindowHandler.SetWindowIgnoreClicks( bool clickThrough );
	// Sets whether the window should ignore all clicks and pass them through to windows below it.

// SetShowTaskbarIcon
WindowHandler.SetShowTaskbarIcon( bool showIcon );
	// Sets whether the window should display its icon in the taskbar or not.

// SetWindowOpacity
WindowHandler.SetWindowOpacity( int percentage );
	// Sets the overall opacity of the window ( between 0% & 100% ).
  // Only works if SetWindowIgnoreClicks is true.

Planned:

// GetPixelColor
WindowHandler.GetPixelColor( int x, int y );
  // Returns a Color value of the pixel at x and y in monitor space.

unitytool-windowhandler's People

Contributors

kalvinpearce avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.