Sign in to follow this  

New GUI control: The Grid

Recommended Posts

Wingnut doing some playing, as usual.  (goes great with Saturday morning cartoons)

Lots of fun to be had with this new grid thing.  For example, we GOTTA rotate it, just cuz we CAN.  hah

I am pondering... "the drill".

console.log(grid.column.row.control.value)  :) coooooool!  I don't know how to do that "data drilling", or if wise/needed.  Just doing some 'imagineering'.

For adventurers... click on that non-empty empty object seen at the bottom of your JS console (to view in object inspector).  Look at the property names on that puppy.

0:0, 1:0, 0:1, 1:1, etc.  Ain't that strange?  I tried to read one with line 54... failed big-time.  Deltakosh does these fancy JS things... cuz he likes watching my dog chase its tail... round and round.  :D

Keep in mind... lines 44 and 45 are defining 0.5 column width, meaning... 50% of remaining horizontal space.  Lines 40-42 already used-up 30%... so...

... lines 44/45 are actually using 70% of grid horz-space (35% each)... minus the thickness of all the rect-based cell borders. 

Should we try cell drag'n'drop and grid.isDirty updating... next?  OMG!  :)  (Wingy dons his safety gear - and so does his dog)

Can we feed a "live" RTT (renderTargetTexture) to a GUI Image Control?  It opens-up the possibility of seeing all 8 camera views of a scene... in little "live" images on a grid... letting user pick which camera they want to use as the main camera.  hmm.  Man, did I wander off-topic, eh?   :) 

Here's my 4-RTT demo if someone feels like getting demented.  And yes, I DO know that it would be unnecessary to use a GUI Grid control to make 4 click-able "pick-your-cam" non-GUI buttons... using actionManagers on the 4 RTT planes - mon 1-4.  Probably easier than re-coding GUI ImageControl to accept RTT streaming.  :) 

Still, though... animated imageControls and textBlock/button backgrounds... that's "uptown"-classy, for sure.  Think about "select-a-room" in a VR hotel.  Each cell of the grid is showing a "live view" from that scene-cam... located in each hotel room.  Click the cell, and that cam goes full-screen, and you are there.

The grid would need an update, putting the previous cam's RTT into the now-empty clicked cam-cell.  Coooool.  RTT's... BJS's closed-circuit TV system.  :)  Anyone remember an old video game called Killed Until Dead?  Surveillance!  :)

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.