Alexustas / Props-requests

6 stars 1 forks source link

Circuit Braker Switch #5

Closed DeputyLOL closed 9 years ago

DeputyLOL commented 9 years ago

A pull switch that looks like it isn't meant for regular use. image When its out, its off. When its in, its on.

DeputyLOL commented 9 years ago

Could have a small lable or texture on the front

Alexustas commented 9 years ago

i need more info about "small label or texture" ?

DeputyLOL commented 9 years ago

Circuit brakers have a small number on the front of them and a label either above or below to indicate what they do. image

Ideally, the front of the circuit braker could have different textures. The labels can be done with a separate circuit braker panel prop.

DeputyLOL commented 9 years ago

Circuit braker should also be colourable

DeputyLOL commented 9 years ago

Very much like the ones you have in the ALCOR mod, but can act as a switch.

Alexustas commented 9 years ago

:-) I mean what kind of texture YOU want. One letter or number? 3-5 symbols? icons? etc.

Alexustas commented 9 years ago

How many different lables you need?

DeputyLOL commented 9 years ago

It will probably just be numbers (fuse ratings). Like the ones currently on ALCOR mod. I'm not entirely sure yet, that's why I wanted textures, so I could add or change them if needed.

Alexustas commented 9 years ago

16 different textures will be enough?

DeputyLOL commented 9 years ago

yup

DeputyLOL commented 9 years ago

they should default to 1 btw. Which would be the 'in' position.

Alexustas commented 9 years ago

bandicam 2015-10-07 00-13-27-360

green circle on the top - transform with switchable texture

DeputyLOL commented 9 years ago

Looks awesome

Alexustas commented 9 years ago

bandicam 2015-10-07 00-18-18-040 do you need to change a colour of this green mesh?

DeputyLOL commented 9 years ago

Yes please. The base and cylinder part can just be grey and a slightly lighter grey

Alexustas commented 9 years ago

ok

Alexustas commented 9 years ago

"ON"

bandicam 2015-10-07 00-29-53-988

OFF

bandicam 2015-10-07 00-29-41-942

DeputyLOL commented 9 years ago

exactly

Alexustas commented 9 years ago

ok. I need about a 1 hour

DeputyLOL commented 9 years ago

ok

Alexustas commented 9 years ago

progress report

bandicam 2015-10-07 01-25-23-764

Alexustas commented 9 years ago

preview:

https://youtu.be/LaHrYbUw4I0

Alexustas commented 9 years ago

circuitbreakerv2diffuse

you get 20 'cells' for different labels

DeputyLOL commented 9 years ago

Brilliant!

Alexustas commented 9 years ago

DL: https://www.dropbox.com/s/vly5atisk8h59ps/CircuitBreakerV2.zip?dl=0

DeputyLOL commented 9 years ago

thank you. testing now

Alexustas commented 9 years ago

let me know if all ok

DeputyLOL commented 9 years ago

not sure if the texture shift is working as intended. When I try and select a black colour, unity shows me that the rest of the switch turns red. I think its because the texture for the red top is moving where the switch textures used to be. image

DeputyLOL commented 9 years ago

i think there needs to be a separate texture for the switch texture

Alexustas commented 9 years ago

for customizing labels you need to use 'JSIPropTextureShift' module in config. In Unity all that props look exactly same but in game all be fine.

Alexustas commented 9 years ago

circuitbreakerv2diffuse

for example, if i need a label "20" on black bg, a config will looks like:

  MODULE
  {
        name = JSIPropTextureShift
        transformToShift = CB_TopObj
        x = 0.40
        y = 0.80
        layerToShift = _MainTex 
  }

each square 0.2 x 0.2, zero in the left bottom corner.

if i need a label "10" on red bg, a config will looks like:

  MODULE
  {
        name = JSIPropTextureShift
        transformToShift = CB_TopObj
        x = 0.20
        y = 0.40
        layerToShift = _MainTex 
  }
Alexustas commented 9 years ago

Unity moves (offset) texture on the ALL meshes, 'JSIPropTextureShift' module move texture only on specified mesh (transformToShift)

https://github.com/Mihara/RasterPropMonitor/wiki/Prop-modules#jsiproptextureshift

DeputyLOL commented 9 years ago

Never mind. I finally got a chance to test it in KSP and it looks ok. Works perfectly. Thank you.

Alexustas commented 9 years ago

i'm glad to help. and now time for the next requested prop