Fix the scaries
This commit is contained in:
		
							parent
							
								
									cb88c74dcc
								
							
						
					
					
						commit
						f04427b06f
					
				| 
						 | 
				
			
			@ -47,16 +47,18 @@ export function MenuState(ctx: ContextI): StateI {
 | 
			
		|||
    let s = new PIXI.Text(v, new PIXI.TextStyle({
 | 
			
		||||
      fontFamily: 'Arial',
 | 
			
		||||
      fontSize: 30,
 | 
			
		||||
      fill: ['#000000'],
 | 
			
		||||
      fill: ['#ffffff'],
 | 
			
		||||
    }))
 | 
			
		||||
    s.interactive = true
 | 
			
		||||
    s.on('pointerdown', () => {
 | 
			
		||||
      selectedSegmentName = v
 | 
			
		||||
      selectedSegmentItem.filters = []
 | 
			
		||||
      selectedSegmentItem.style.fill = ['#ffffff']
 | 
			
		||||
      selectedSegmentItem = s
 | 
			
		||||
      selectedSegmentItem.filters = [
 | 
			
		||||
        new OutlineFilter(2, 0x99ff99)
 | 
			
		||||
      ]
 | 
			
		||||
      selectedSegmentItem.style.fill = ['#000000']
 | 
			
		||||
    })
 | 
			
		||||
    container.addChild(s)
 | 
			
		||||
    return s
 | 
			
		||||
| 
						 | 
				
			
			@ -66,6 +68,7 @@ export function MenuState(ctx: ContextI): StateI {
 | 
			
		|||
  selectedSegmentItem.filters = [
 | 
			
		||||
    new OutlineFilter(2, 0x99ff99)
 | 
			
		||||
  ]
 | 
			
		||||
  selectedSegmentItem.style.fill = ['#000000']
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  let selectedText = new PIXI.Text(selectedAnimalName, new PIXI.TextStyle({
 | 
			
		||||
| 
						 | 
				
			
			@ -177,10 +180,10 @@ export function MenuState(ctx: ContextI): StateI {
 | 
			
		|||
      item.y = yPos
 | 
			
		||||
      yPos += item.height + 8
 | 
			
		||||
    }
 | 
			
		||||
    scaryBoi.container.y = scaryBoi.container.height
 | 
			
		||||
    scaryBoi.container.x = ctx.app.view.width + scaryBoi.container.width/1.6
 | 
			
		||||
    scaryBun.container.y = scaryBun.container.height
 | 
			
		||||
    scaryBun.container.x = scaryBun.container.width/1.75
 | 
			
		||||
    scaryBoi.container.y = 0
 | 
			
		||||
    scaryBoi.container.x = ctx.app.view.width - scaryBoi.container.width/3
 | 
			
		||||
    scaryBun.container.y = 0
 | 
			
		||||
    scaryBun.container.x = -scaryBun.container.width/2
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user