Jump to content

gladys45

Member
  • Posts

    6
  • Joined

  • Last visited

gladys45's Achievements

  1. hi everyone, i have recently been trying to get to grips with the world context menu. i can add an option if conditions are met, player clicks on ground outside and is grass/soil. the menu option displays, however the function i have linked to the menu option (a timed action) is always executed. i'm probably missing something very very simple however i keep looking at my code and it looks fine (well it looks terrible... but...) TL:DR context menu shows my option but always calls the function i have linked to it. function contextMenu(_player, _context, _worldObjects) if test then return ISWorldObjectContextMenu.setTest() end testVar = false; local player = getSpecificPlayer(_player); local square = nil; for i,v in ipairs(_worldObjects) do square = v:getSquare(); for t = 0, square:getObjects():size() - 1 do local item = square:getObjects():get(t); if item:getTextureName() and (luautils.stringStarts(item:getTextureName(), "floors_exterior_natural") or luautils.stringStarts(item:getTextureName(), "blends_natural")) then testVar = true; end end end if testVar then if test then return ISWorldObjectContextMenu.setTest() end _context:addOption("My Menu", _worldObjects, testfunc(player,"woop woop"), testVar, _player); end endfunction testfunc(player, msg) print(msg); ISTimedActionQueue.add(ISslowPoke:new(player, msg, 50));endEvents.OnFillWorldObjectContextMenu.Add(contextMenu)
  2. i've been modding the remove grass function. it now gives the player some grass. i made a recipe that crafts twine from grass. still needs work but the basics work. had the game for two weeks and couldn't help myself start modding i'll post it if anyone is interested in using it.
  3. only solution i have found to custom brushes so far is a plugin for paintDOTnet. http://paint.net.amihotornot.com.au/features/effects/plugins/Tools/CustomBrushesMini/ check the paintDOTnet forums too, slow but alot of resources. forum section for plugins. http://forums.getpaint.net/index.php?/forum/7-plugins-publishing-only/ i'll post the icons/tiles i've been drawing if anyone wants to use them.
  4. bumping for interest. i too would like to know the answer to this. also, much love blindcoder, your map is invaluable
  5. yes you can save a palette in paint.NET. On the colour window, left below the colour wheel, there is a button "Manage color palettes", it will give you an option to save the current palette. not sure about the custom brushes. i would save an image with your custom brushes on it and clone them as needed. though thats kinda slow
×
×
  • Create New...