• 转一个。


    Try(DestroyDialog UVWMAPS) Catch()
    rollout UVWMAPS "UVW" 252 height:16
    (
     spinner spnuvw "" pos:[23,0] 57 height:16 range:[0,999999,0]
     button btn500 "500" pos:[82,0] 25 height:16
     button closed "box" pos:[0,0] 23 height:16 border:false
     button btn1000 "1000" pos:[132,0] 30 height:16
     button btn1200 "1200" pos:[162,0] 30 height:16
     button btn1500 "1500" pos:[192,0] 30 height:16
     button btn800 "800" pos:[107,0] 25 height:16
     button btn2000 "2000" pos:[222,0] 30 height:16
     on spnuvw changed val do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = spnuvw.value
      selection[1].UVW_Mapping.width = spnuvw.value
      selection[1].UVW_Mapping.height = spnuvw.value
      )
     )
     on btn500 pressed do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = 500
      selection[1].UVW_Mapping.width = 500
      selection[1].UVW_Mapping.height = 500
      )
     )
     on closed rightClick do
     (
      Try(DestroyDialog MaterialTools) Catch()
     )
     on btn1000 pressed do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = 1000
      selection[1].UVW_Mapping.width = 1000
      selection[1].UVW_Mapping.height = 1000
      )
     )
     on btn1200 pressed do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = 1200
      selection[1].UVW_Mapping.width = 1200
      selection[1].UVW_Mapping.height = 1200
      )
     )
     on btn1500 pressed do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = 1500
      selection[1].UVW_Mapping.width = 1500
      selection[1].UVW_Mapping.height = 1500
      )
     )
     on btn800 pressed do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = 800
      selection[1].UVW_Mapping.width = 800
      selection[1].UVW_Mapping.height = 800
      )
     )
     on btn2000 pressed do
     (
      if selection.count > 0 then (
      max modify mode
      if (for i in selection[1].modifiers where classof i == Uvwmap collect i).count ==0 then
         modPanel.addModToSelection (Uvwmap maptype:4 )
         selection[1].UVW_Mapping.realWorldMapSize = off
      selection[1].UVW_Mapping.length = 2000
      selection[1].UVW_Mapping.width = 2000
      selection[1].UVW_Mapping.height = 2000
      )
     )
    )
    createDialog UVWMAPS  pos:(mouse.screenPos - mouse.Pos)

  • 相关阅读:
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)I
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)F
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)H
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)E
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)G
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)C
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)D
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)A
    哈尔滨理工大学第七届程序设计竞赛决赛(网络赛-高年级组)B
    HDU 6187 Destroy Walls
  • 原文地址:https://www.cnblogs.com/gaitian00/p/2189342.html
Copyright © 2020-2023  润新知