I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "Unreal Wiki:Sandbox"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
Do not edit the area above the separator line, please.
 
Do not edit the area above the separator line, please.
 
 
----
 
----
 
+
UIComp_DrawImage custom subclasses:
* This correctly replaces, but for obvious reasons doesn't produce links correctly: [[{{#replace:a,b,c|,|]], [}}]]
+
{{#dpl:
* This doesn't even apply #replace: [[{{#replace:a,b,c|,|]], [[}}]]
+
|category=Subclasses of UIComp_DrawImage{{!}}Subclasses of UIComp_DrawImage (UE3)}{{!}}Subclasses of UIComp_DrawImage (UT3)
* This works, but is very ugly: {{#replace:{{#replace:@@{{#replace:a,b,c|,|~~, @@}}~~ | ~ | ] }} | @ | [ }}
+
|category=Custom classes{{!}}Custom UE3-specific classes{{!}}Custom UT3-specific classes
* Still ugly, but a bit better: {{concat|[|[{{#replace:a,b,c|,|{{concat|]|], [|[}}}}]|]}}
+
|namespace={{#if:UE3|{{!}}UE3}}{{!}}User
 
+
|format=,[[%PAGE%|%TITLE%]],,
[http://wiki.beyondunreal.com:8080/w/extensions/uscript.php.gz Current UScript highlighter] - powered by [[mediawikiwiki:Extension:SyntaxHighlight_GeSHi|Extension:SyntaxHighlight_GeSHi]]
+
|inlinetext=, 
<uscript line>
+
|shownamespace=false
class TestCommandlet extends Commandlet;
+
|replaceintitle=/ (?!\()/,_
 
+
|resultsheader=\n;Known custom subclasses&#58;:
function int Main(string Args)
+
|oneresultheader=\n;Known custom subclass&#58;:
{
+
|noresultsheader=<nowiki></nowiki>
  DynamicLoadObject(Args, class'Class');
+
|allowcachedresults=true
 
+
}}
  return 0;
+
}
+
</uscript>
+
 
+
Other languages available as well:
+
<source lang=perl>
+
my $line = <>;
+
chomp $line;
+
if ($line =~ /^y/i) {
+
    print "You answered yes!\n";
+
}
+
else {
+
    print "You answered no!\n";
+
}
+
</source>
+
 
+
Custom code for tree parser, please abuse:
+
+dfgsdfg
+
++dfgsdfg
+
+sdfgsdfgdfg
+
++sdfgsdfgsdfg
+
++sdfgdsfgsdfg
+
+++sdfgs  dfgsdfgsdfg
+
+dsfgdsfg
+
++sdfgsdfg
+
+sdgsdfgs
+

Latest revision as of 01:55, 9 August 2015

Do not edit the area above the separator line, please.


UIComp_DrawImage custom subclasses: