L3DT users' wiki
Large 3D terrain generator

Differences

This shows you the differences between two versions of the page.

scripts:setdesignmaplayer [2013/08/22 00:09]
127.0.0.1 external edit
scripts:setdesignmaplayer [2017/08/31 05:52] (current)
Line 1: Line 1:
-====== Scripts > SetDesignMapLayer ======+====== Scripts > DM_SetLayer ======
  
-^  Description | Set the contents of a layer of the design map, using another map layer in the project. To be used with the [[scripts:GetDesignMapLayer]] script. |+^  Description | Set the contents of a layer of the design map, using another map layer in the project. To be used with the [[scripts:GetDesignMapLayer|DM_GetLayer]] script. |
 ^  Author | [[user>Aaron]] | ^  Author | [[user>Aaron]] |
 ^  Created | 2010/05/24 | ^  Created | 2010/05/24 |
 +^  Updated | 2016/05/12 |
 ^  Requires | L3DT v2.9 beta 2 or later | ^  Requires | L3DT v2.9 beta 2 or later |
-^  Download | {{:scripts:setdesignmaplayer.zs|SetDesignMapLayer.zs}} | +^  Download | {{:scripts:DM_SetLayer.zs|DM_SetLayer.zs}} |
-<html><!--^  Updated | 2010/05/24 03:42 |--></html>+
  
 ===== Script contents ===== ===== Script contents =====
  
 <code> <code>
 +// Author:  A. Torpy
 +// Updated: 12 May 2016
 +
 hvar hDM hvar hDM
 set hDM <GetMap "DM"> set hDM <GetMap "DM">
Line 17: Line 20:
 // allow user to select layer // allow user to select layer
 combosel CS combosel CS
-combosel.InitCS &CS "Altitude|PeakNoise|FracNoise|Cliffs|Erosion|Lakes|Climate|SpecType|SpecParam|" "Altitude"+combosel.Init &CS "Altitude|PeakNoise|FracNoise|Cliffs|Erosion|Lakes|Climate|SpecType|SpecParam|" "Altitude" NULL
 if <not <EditUI &CS "Select DM layer">> if <not <EditUI &CS "Select DM layer">>
   return 0   return 0
Line 26: Line 29:
 set LayerID -1 set LayerID -1
 string LayerName string LayerName
-set LayerName <combosel.GetCurSel &CS>+set LayerName <combosel.GetCurSelA &CS>
 if <iseq 0 <strcmp LayerName "Altitude">> if <iseq 0 <strcmp LayerName "Altitude">>
   set LayerID 0   set LayerID 0
Line 66: Line 69:
 </code> </code>
  
-===== Comments ===== 
  
-None. 
 
scripts/setdesignmaplayer.txt · Last modified: 2017/08/31 05:52 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki