The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

Difference between revisions of "Unreal Wiki:Sandbox"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
 
(23 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 definitely better: [[{{#replace:a,b,c|,|{{concat|]|], [|[}}}}]]
+
|namespace={{#if:UE3|{{!}}UE3}}{{!}}User
 
+
|format=,[[%PAGE%|%TITLE%]],,
[http://wiki.beyondunreal.com:8080/w/extensions/uscript.php.txt UScript highlighter] - powered by a slightly modified version of [[mediawikiwiki:Extension:SyntaxHighlight_GeSHi|Extension:SyntaxHighlight_GeSHi]].  A class for all source blocks has been added (highlighted-source), and the indent parameter has been added so you can specify how many spaces to expand tabs to.  Larger test here: [[Project:Sandbox/UScript Test]]
+
|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:
+
+erergtsdg
+
++dfgsdfg
+
+++dfgsdfg
+
++sdfgsdfgdfg
+
+++sdfgsdfgsdfg
+
+++sdfgdsfgsdfg
+
++++sdfgs  dfgsdfgsdfg
+
++dsfgdsfg
+
+++sdfgsdfg
+
++sdgsdfgs
+
 
+
Interwiki testing:
+
* [[JDN:JBInfoJail]]
+
* [[WikiPedia:Unreal Tournament|UT]]
+
* [[Liandri:UT2004]]
+

Latest revision as of 02:55, 9 August 2015

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


UIComp_DrawImage custom subclasses: