<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=M2775</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=M2775"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/M2775"/>
	<updated>2026-04-12T03:11:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Utility_Talk:Tweak/Development&amp;diff=41517</id>
		<title>Utility Talk:Tweak/Development</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Utility_Talk:Tweak/Development&amp;diff=41517"/>
		<updated>2008-05-28T11:07:01Z</updated>

		<summary type="html">&lt;p&gt;M2775: /* module variables with forms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;K, I got it to work, I did have to redo the reference to the DLL.  The reveal example worked too, once I referenced Windows.Forms.  Looks like a pretty nice setup, I applaud! :) --[[User:Corc|Corc]] 04:00, 10 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== module variables with forms ==&lt;br /&gt;
&lt;br /&gt;
I'm mostly self taught so I most likely have bad habits in coding, so bare with me :)&lt;br /&gt;
&lt;br /&gt;
I'd like to make a little form with options on it and then run code when certain buttons are clicked.  I've got the form added to the project and couldn't quite figure out how to get a function from the Module class as an event for a button click without making the button public (in the form class) and adding it manually (in the module class) after I made a new instance of the form in the module run function.  I also, wanted to store the memory/version/mode/etc arguments passed to the run function so I could later use them in other functions that would be called from the form according to options selected in that form.  I tried to add private storage variables inside the class itself, but I don't know the constructors for the types to make a valid copy (after run finishes the private variables don't work).&lt;br /&gt;
&lt;br /&gt;
Can only one module be used at a time, or is it possible to spawn a module and have it be an &amp;quot;info box&amp;quot; while other modules are free to be &amp;quot;run&amp;quot;?  That's kinda what I'm getting at, I'd like to keep the connection to the memory/version/modulemode/etc stuff while the main program is running but not hog up the program.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this is me learning C# at the same time as learning windows gui stuff.  I've tried a little google searching and came up with mostly web development--so any links to useful examples/tutorials/refs would be awesome.  As soon as I get to the bookstore, I'll see how the pricing on books for C# are :)--[[User:Corc|Corc]] 18:39, 12 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Currently Tweak is not designed for having multiple modules running at once, since most of them currently suspend the game while it does its work to prevent conflicts. As for your form issues -- instantiate your main form in the Run function, and use form.ShowDialog() (something like that), this is how I do it. &amp;amp;mdash;[[User:Rick|Rick]] 04:30, 13 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Ah, maybe Show() and ShowDialog() behave differently, because I was setting it all up and the form would show up and I could do non-memory editing stuff.  Thanks for the quick answer :) --[[User:Corc|Corc]] 14:30, 13 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== addresses == &lt;br /&gt;
&lt;br /&gt;
Is there a reference for the addresses available?  Or how do I find the addresses? &amp;quot;map_data&amp;quot;, &amp;quot;creature_body_part_health_vector_offset&amp;quot; ?  I will compile a list if I can find them. --[[User:M2775|M2775]] 07:07, 28 May 2008 (EDT)&lt;/div&gt;</summary>
		<author><name>M2775</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Utility_Talk:Tweak/Development&amp;diff=41516</id>
		<title>Utility Talk:Tweak/Development</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Utility_Talk:Tweak/Development&amp;diff=41516"/>
		<updated>2008-05-28T11:05:27Z</updated>

		<summary type="html">&lt;p&gt;M2775: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;K, I got it to work, I did have to redo the reference to the DLL.  The reveal example worked too, once I referenced Windows.Forms.  Looks like a pretty nice setup, I applaud! :) --[[User:Corc|Corc]] 04:00, 10 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
== module variables with forms ==&lt;br /&gt;
&lt;br /&gt;
I'm mostly self taught so I most likely have bad habits in coding, so bare with me :)&lt;br /&gt;
&lt;br /&gt;
I'd like to make a little form with options on it and then run code when certain buttons are clicked.  I've got the form added to the project and couldn't quite figure out how to get a function from the Module class as an event for a button click without making the button public (in the form class) and adding it manually (in the module class) after I made a new instance of the form in the module run function.  I also, wanted to store the memory/version/mode/etc arguments passed to the run function so I could later use them in other functions that would be called from the form according to options selected in that form.  I tried to add private storage variables inside the class itself, but I don't know the constructors for the types to make a valid copy (after run finishes the private variables don't work).&lt;br /&gt;
&lt;br /&gt;
Can only one module be used at a time, or is it possible to spawn a module and have it be an &amp;quot;info box&amp;quot; while other modules are free to be &amp;quot;run&amp;quot;?  That's kinda what I'm getting at, I'd like to keep the connection to the memory/version/modulemode/etc stuff while the main program is running but not hog up the program.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this is me learning C# at the same time as learning windows gui stuff.  I've tried a little google searching and came up with mostly web development--so any links to useful examples/tutorials/refs would be awesome.  As soon as I get to the bookstore, I'll see how the pricing on books for C# are :)--[[User:Corc|Corc]] 18:39, 12 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Currently Tweak is not designed for having multiple modules running at once, since most of them currently suspend the game while it does its work to prevent conflicts. As for your form issues -- instantiate your main form in the Run function, and use form.ShowDialog() (something like that), this is how I do it. &amp;amp;mdash;[[User:Rick|Rick]] 04:30, 13 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Ah, maybe Show() and ShowDialog() behave differently, because I was setting it all up and the form would show up and I could do non-memory editing stuff.  Thanks for the quick answer :) --[[User:Corc|Corc]] 14:30, 13 May 2008 (EDT)&lt;br /&gt;
&lt;br /&gt;
Is there a reference for the addresses available?  Or how do I find the addresses? &amp;quot;map_data&amp;quot;, &amp;quot;creature_body_part_health_vector_offset&amp;quot; ?  I will compile a list if I can find them.&lt;/div&gt;</summary>
		<author><name>M2775</name></author>
	</entry>
</feed>